blib/lib/CPAN/Indexer/Mirror.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 10 | 18 | 55.5 |
line | true | false | branch |
---|---|---|---|
80 | 1 | 0 | unless $_[0]{'timestamp'} |
103 | 1 | 0 | ref $_[0] ? : |
127 | 0 | 1 | unless my $yaml_fh = 'IO::AtomicFile'->open($yaml_file, 'w') |
128 | 0 | 1 | unless my $json_fh = 'IO::AtomicFile'->open($json_file, 'w') |
129 | 0 | 1 | unless $yaml_fh->print(YAML::Tiny::Dump($data)) |
130 | 0 | 1 | unless $json_fh->print('JSON'->new->pretty->encode($data)) |
131 | 0 | 1 | unless $yaml_fh->close |
132 | 0 | 1 | unless $json_fh->close |
142 | 183 | 59 | if defined $_[0] |