Branch Coverage

blib/lib/Test/Differences.pm
Criterion Covered Total %
branch 57 78 73.0


line true false branch
281 27 4 unless @_
283 0 4 unless ($allowed_style{$requested_style})
302 0 35 if $has_test_pm and not $has_builder_pm
303 35 0 if not $has_test_pm and $has_builder_pm
305 0 0 if ($has_test_pm and $has_builder_pm)
325 14 33 if ref $_ ne "ARRAY"
330 12 10 if ref $_ ne "HASH"
340 70 0 if @_
341 37 33 unless ref $_
342 24 9 if (ref $_ eq 'ARRAY') { }
6 3 elsif (ref $_ eq 'HASH') { }
343 1 23 unless @$_
344 11 12 unless _isnt_ARRAY_of_scalars()
346 4 8 unless grep _isnt_ARRAY_of_scalars(), @$_
348 0 8 unless grep _isnt_HASH_of_scalars(), @$_
353 6 0 unless _isnt_HASH_of_scalars($_)
361 4 31 if @_ > 2 and ref $_[-1]
368 4 31 if ($options)
373 18 17 unless ref $vals[0] or ref $vals[1]
381 34 1 unless $Test::Differences::NoDeparse
390 0 35 exists $options->{'Sortkeys'} ? :
400 0 70 if ($@ =~ /^Dereferencing cannot be performed on unknown values at .*Unknown.Values.Instance/)
415 27 8 unless ($passed)
416 0 27 if ($unknown_value_in_got)
417 0 27 if ($unknown_value_in_expected)
421 2 25 if exists $options->{'context'}
423 3 19 grep((@$_ > 25), $got, $expected) ? :
3 22 $dump_it ? :
25 2 unless defined $context
426 0 27 unless $context =~ /\A\d+\z/
429 17 10 $data_type eq 'text' ? :
17 10 $data_type eq 'text' ? :
17 10 $data_type eq 'text' ? :
444 0 35 if ($which eq 'Test') { }
35 0 elsif ($which eq 'Test::Builder') { }
446 0 0 $passed ? :
456 27 8 unless $passed
459 0 0 unless ($warned_of_unknown_test_lib)
465 0 0 if ($passed) { }