travis-ci
189 of 554 new or added lines in 29 files covered. (34.12%)
3661 existing lines in 138 files now uncovered.18433 of 31107 relevant lines covered (59.26%)
147.82 hits per line
UNCOV
1
|
module Dwca::Generator |
× |
2 |
|
|
3 |
# Generates a DwC-A from database data
|
|
4 |
# @return [String]
|
|
UNCOV
5
|
def self.get_archive |
× |
UNCOV
6
|
path = Rails.root.join('tmp/dwc_' + SecureRandom.hex + '.tar.gz') |
× |
UNCOV
7
|
gen = DarwinCore::Generator.new(path) |
× |
8 |
|
|
UNCOV
9
|
core = [['http://rs.tdwg.org/dwc/terms/taxonID']]
|
× |
UNCOV
10
|
gen.add_core(core, 'core.txt')
|
× |
UNCOV
11
|
gen.add_meta_xml |
× |
UNCOV
12
|
gen.pack |
× |
UNCOV
13
|
gen.clean |
× |
14 |
|
|
UNCOV
15
|
return path
|
× |
UNCOV
16
|
end
|
× |
UNCOV
17
|
end
|
× |