Branch Coverage

blib/lib/Convert/Binary/C/Cached.pm
Criterion Covered Total %
branch 102 134 76.1


line true false branch
46 1 887 if @_ % 2
48 885 2 if @_
57 3 1858 if (@_ < 2 and not defined wantarray)
58 2 1 if $^W
62 910 948 if (@_ == 0) { }
0 948 elsif (@_ == 1 and $_[0] eq 'Cache') { }
73 0 948 if (@_ == 1) { }
948 0 elsif (@_ % 2 == 0) { }
79 880 153 if (exists $arg{'Cache'}) { }
80 0 880 if ($$self{'parsed'}) { }
1 879 elsif (ref $arg{'Cache'}) { }
87 879 0 if (defined $arg{'Cache'})
90 2 877 if $@
92 1 878 if $@
93 2 877 if (@missing)
94 2 0 if $^W
107 106 841 if (@args)
109 38 68 if $@
131 3 0 unless (defined wantarray)
132 2 1 if $^W
139 0 0 if ($_)
140 0 0 ref $_ eq 'ARRAY' ? :
152 6 41 if defined $error
153 12 29 if defined wantarray
161 51 864 if defined $error
162 15 849 if defined wantarray
169 3 17 unless $$self{'parsed'}
171 3 14 unless (defined wantarray)
172 2 1 if $^W
176 7 7 unless $$self{'files'}
189 877 87 if (defined $$self{'cache'})
190 1 876 if $$self{'parsed'}
194 44 832 if ($self->__can_use_cache)
200 27 17 unless ($@ or @WARN)
215 23 913 if ($_[0] eq 'file') { }
223 57 879 if ($@) { }
228 849 30 if defined $$self{'cache'}
241 5 871 unless (-e $$self{'cache'} and -s _)
242 0 5 if $ENV{'CBCC_DEBUG'}
246 0 871 unless ($fh->open($$self{'cache'}))
247 0 0 if $^W
248 0 0 if $ENV{'CBCC_DEBUG'}
254 0 871 unless (defined($config = <$fh>))
255 0 0 if $ENV{'CBCC_DEBUG'}
258 5 866 unless ($config =~ /^#if\s+0/)
259 0 5 if $ENV{'CBCC_DEBUG'}
269 10 856 if (@config % 2)
270 0 10 if $ENV{'CBCC_DEBUG'}
276 829 27 exists $$self{'code'} ? :
278 809 47 unless (exists $config{$what} and $config{$what} eq $$self{$what} and __reccmp($config{'cfg'}, $self->configure))
281 0 809 if ($ENV{'CBCC_DEBUG'})
292 0 3083 unless (-e $file)
293 0 0 if $ENV{'CBCC_DEBUG'}
297 3 3080 unless ($$spec{'size'} == $size and $$spec{'mtime'} == $mtime and $$spec{'ctime'} == $ctime)
300 0 3 if $ENV{'CBCC_DEBUG'}
307 0 44 if $ENV{'CBCC_DEBUG'}
316 1 848 unless $fh->open(">$$self{'cache'}")
318 826 22 exists $$self{'code'} ? :
335 10 1466 if not defined $ref and not defined $val
336 0 1466 if not defined $ref or not defined $val
338 1135 331 unless ref $ref
340 189 142 if (ref $ref eq 'ARRAY') { }
142 0 elsif (ref $ref eq 'HASH') { }
341 1 188 unless @$ref == @$val
343 0 91 unless __reccmp($$ref[$_], $$val[$_])
347 0 142 unless keys %$ref == keys %$val
349 1 1336 unless __reccmp($$ref{$_}, $$val{$_})