Branch Coverage

blib/lib/Vcdiff/OpenVcdiff.pm
Criterion Covered Total %
branch 31 48 64.5


line true false branch
26 0 65 if (not defined $source) { }
33 32 elsif (ref $source eq 'GLOB') { }
31 0 32 unless (defined &Sys::Mmap::mmap($source_str, 0, Sys::Mmap::PROT_READ(), Sys::Mmap::MAP_SHARED(), $source))
36 0 32 unless &Sys::Mmap::munmap($source_str)
42 0 64 if (not defined $input) { }
32 32 elsif (ref $input eq 'GLOB') { }
46 0 32 if not defined $input_fileno or $input_fileno == -1
51 32 32 if (defined $output) { }
52 0 32 if ref $output ne 'GLOB'
56 0 32 if not defined $output_fileno or $output_fileno == -1
65 32 32 if not defined $output
79 0 64 if (not defined $source) { }
32 32 elsif (ref $source eq 'GLOB') { }
84 0 32 unless (defined &Sys::Mmap::mmap($source_str, 0, Sys::Mmap::PROT_READ(), Sys::Mmap::MAP_SHARED(), $source))
89 0 32 unless &Sys::Mmap::munmap($source_str)
95 0 64 if (not defined $input) { }
32 32 elsif (ref $input eq 'GLOB') { }
99 0 32 if not defined $input_fileno or $input_fileno == -1
104 32 32 if (defined $output) { }
105 0 32 if ref $output ne 'GLOB'
109 0 32 if not defined $output_fileno or $output_fileno == -1
118 32 32 if not defined $output
140 128 0 unless $ret
144 0 0 if $exception