Branch Coverage

blib/lib/File/Cmp.pm
Criterion Covered Total %
branch 33 48 68.7


line true false branch
23 0 6 if @_ < 2
25 0 6 @_ == 1 && ref $_[0] eq 'HASH' ? :
27 5 1 unless exists $$param{'sizecheck'}
28 2 4 if exists $$param{'tells'}
30 1 5 if ($$param{'fscheck'})
34 0 2 unless my(@devino) = (stat $f)[0, 1]
37 1 0 if ($statbuf[0][0] == $statbuf[1][0] and $statbuf[0][1] == $statbuf[1][1])
39 1 0 if exists $$param{'reason'}
48 2 3 if ($$param{'sizecheck'} and -s $files[0] != -s $files[1])
49 2 0 if exists $$param{'reason'}
55 5 1 if (not defined reftype($f)) { }
56 0 5 unless open my $fh, '<', $f
63 2 4 if (exists $$param{'binmode'})
64 0 2 unless binmode $fhs[-1], $$param{'binmode'}
68 0 3 if exists $$param{'RS'}
76 1 16 if $eof1 and $eof2
77 1 15 if ($eof1 xor $eof2)
78 1 0 if exists $$param{'reason'}
79 1 0 if exists $$param{'tells'}
85 0 15 unless defined $this
87 0 15 unless defined $that
89 1 14 if ($this ne $that)
90 1 0 if exists $$param{'tells'}
92 1 0 if exists $$param{'reason'}