Branch Coverage

blib/lib/DiaColloDB/methods/export.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
27 0 0 unless $coldb->opened
33 0 0 exists $opts{'export_sdat'} ? :
34 0 0 exists $opts{'export_cof'} ? :
35 0 0 exists $opts{'export_tdf'} ? :
38 0 0 unless -d $outdir or make_path($outdir)
43 0 0 unless $coldb->saveHeader("$outdir/header.json")
49 0 0 if $coldb->{'tenum'} and not $coldb->{'tenum'}->loaded
51 0 0 if $_->{'enum'} and not $_->{'enum'}->loaded
57 0 0 if ($export_sdat)
80 0 0 unless $coldb->{'tenum'}->saveTextFile("$outdir/tenum.dat")
84 0 0 if ($export_sdat)
86 0 0 unless $coldb->{'tenum'}->saveTextFile("$outdir/tenum.sdat", 'pack_s', $ts2txt)
94 0 0 unless $_->{'enum'}->saveTextFile("$outdir/$_->{'a'}_enum.dat")
102 0 0 unless $_->{'a2t'}->saveTextFile("$outdir/$_->{'a'}_2t.dat")
106 0 0 if ($export_sdat)
108 0 0 unless $_->{'a2t'}->saveTextFile("$outdir/$_->{'a'}_2t.sdat", 'a2s', $_->{'i2txt'}, 'b2s', $ti2txt)
114 0 0 if ($coldb->{'xf'})
117 0 0 unless $coldb->{'xf'}->saveTextFile("$outdir/xf.dat")
121 0 0 if ($export_sdat)
123 0 0 unless $coldb->{'xf'}->saveTextFile("$outdir/xf.sdat", 'i2s', $ti2txt)
129 0 0 if ($coldb->{'cof'} and $export_cof)
131 0 0 unless $coldb->{'cof'}->saveTextFile("$outdir/cof.dat")
134 0 0 if ($export_sdat)
136 0 0 unless $coldb->{'cof'}->saveTextFile("$outdir/cof.sdat", 'i2s', $ti2txt)
142 0 0 if ($coldb->{'tdf'} and $coldb->{'index_tdf'} and $export_tdf)
144 0 0 unless $coldb->{'tdf'}->export("$outdir/tdf", $coldb)
159 0 0 unless ref $coldb