Branch Coverage

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


line true false branch
281 29 4 unless @_
283 0 4 unless ($allowed_style{$requested_style})
302 0 37 if $has_test_pm and not $has_builder_pm
303 37 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 14 if ref $_ ne "HASH"
340 74 0 if @_
341 37 37 unless ref $_
342 24 13 if (ref $_ eq 'ARRAY') { }
10 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 10 0 unless _isnt_HASH_of_scalars($_)
361 5 32 if @_ > 2 and ref $_[-1]
368 5 32 if ($options)
373 18 19 unless ref $vals[0] or ref $vals[1]
381 36 1 unless $Test::Differences::NoDeparse
390 0 37 exists $options->{'Sortkeys'} ? :
400 0 74 if ($@ =~ /^Dereferencing cannot be performed on unknown values at .*Unknown.Values.Instance/)
415 29 8 unless ($passed)
416 0 29 if ($unknown_value_in_got)
417 0 29 if ($unknown_value_in_expected)
421 2 27 if exists $options->{'context'}
423 3 21 grep((@$_ > 25), $got, $expected) ? :
3 24 $dump_it ? :
27 2 unless defined $context
426 0 29 unless $context =~ /\A\d+\z/
429 17 12 $data_type eq 'text' ? :
17 12 $data_type eq 'text' ? :
17 12 $data_type eq 'text' ? :
444 0 37 if ($which eq 'Test') { }
37 0 elsif ($which eq 'Test::Builder') { }
446 0 0 $passed ? :
456 29 8 unless $passed
459 0 0 unless ($warned_of_unknown_test_lib)
465 0 0 if ($passed) { }