push
travis-ci
0 of 1 new or added line in 1 file covered. (0.0%)
4246 existing lines in 332 files now uncovered.19161 of 32822 relevant lines covered (58.38%)
96.89 hits per line
1 |
module Dwca::Generator |
1✔ |
2 |
|
|
3 |
# Generates a DwC-A from database data
|
|
4 |
# @return [String]
|
|
5 |
def self.get_archive |
1✔ |
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
|
× |
16 |
end
|
|
17 |
end
|