Branch Coverage

blib/lib/Test/FileReferenced.pm
Criterion Covered Total %
branch 50 50 100.0


line true false branch
111 1 13 unless ($test_name)
116 1 12 if ($$output{$test_name})
120 8 4 unless ($comparator)
127 2 10 unless (exists $$reference{$test_name})
139 2 8 unless ($status = &$comparator($tested_data, $$reference{$test_name}, $test_name))
166 3 1 unless ($comparator)
172 1 3 if ('File::Spec'->file_name_is_absolute($reference_filename)) { }
185 1 3 if (not $status = &$comparator($tested_data, $reference_data, $test_name)) { }
193 2 1 if (-e $output_path)
217 1 5 unless ($serializer_ext)
221 1 4 unless ($serializer_load)
224 1 3 if (ref $serializer_load ne 'CODE')
228 1 2 unless ($serializer_dump)
231 1 1 if (ref $serializer_dump ne 'CODE')
252 5 11 if ($exited_cleanly)
257 3 8 if ($failure_count > 0) { }
277 9 10 if ($default_results_filename)
295 1 7 if ($default_results_filename and -f $default_results_filename)
337 6 9 if ($reference)
343 1 8 unless (-f $default_reference_filename)
401 1 3 if ($ENV{'FILE_REFERENCED_NO_PROMPT'})
414 2 1 if (-f $reference_filename) { }
423 2 4 if (-x 'File::Spec'->catfile($path, $diff_command))
454 1 11 if ($Test::FileReferenced::EVAL_ERROR)
467 1 4 if ($Test::FileReferenced::EVAL_ERROR)