Branch Coverage

blib/lib/Test2/Tools/Compare.pm
Criterion Covered Total %
branch 109 128 85.1


line true false branch
109 218 1179 if ($delta) { }
116 61 260 if $add and @$add
117 61 260 if $d->verified
119 1 259 if $d->note and $d->note eq "implicit end"
122 0 218 if ($implicit == $count) { }
124 0 0 $ENV{'AUTHOR_TESTING'} ? :
157 8 4 if ($delta) { }
166 8 4 $delta ? :
175 3 335 if ($delta) { }
193 4 5 if ($delta) { }
202 4 5 $delta ? :
216 1 1 defined $_ ? :
225 5 1 defined $_ ? :
234 2 4 defined $_ && !(ref $_ || $_) ? :
243 4 26 $p{'exists'} ? :
252 1 1 $p{'exists'} ? :
261 4 26 $p{'got'} ? :
272 2 4 unless $p{'exists'}
273 2 2 $p{'got'} ? :
286 0 163 unless $p{'exists'}
287 159 4 $p{'got'} ? :
298 3 2 defined $_ && length $_ ? :
431 1 1 defined $tolerance ? :
473 1 17 unless defined(my $build = get_build())
475 1 16 unless $build->can("add_filter")
478 1 15 if defined wantarray
485 0 5 unless defined(my $build = get_build())
487 0 5 unless $build->can("add_for_each")
490 0 5 if defined wantarray
497 0 2 unless defined(my $build = get_build())
499 0 2 unless $build->can("add_for_each_key")
502 0 2 if defined wantarray
510 0 2 unless defined(my $build = get_build())
512 0 2 unless $build->can("add_for_each_val")
515 0 2 if defined wantarray
523 1 321 unless defined(my $build = get_build())
525 1 320 unless $build->can("ending")
528 1 319 if defined wantarray
535 0 1104 unless defined(my $build = get_build())
537 0 1104 unless $build->can("ending")
540 0 1104 if defined wantarray
575 1 821 unless defined(my $build = get_build())
577 0 821 unless $build->can("add_prop")
580 1 820 if defined wantarray
598 1 1502 unless defined(my $build = get_build())
600 1 1501 unless $build->can("add_item")
603 1 1500 if defined wantarray
619 1 1022 unless defined(my $build = get_build())
621 1 1021 unless $build->can("add_field")
624 1 1020 if defined wantarray
641 1 17 unless defined(my $build = get_build())
643 1 16 unless $build->can("add_check")
646 1 15 if defined wantarray
669 7 16 if ($btype eq 'CODE') { }
686 0 37 if defined wantarray
688 0 37 unless defined(my $build = get_build())
698 1 2206 unless $intype
701 99 2107 if ($intype =~ /^\+(.*)$/) { }
709 134 2072 if (not $spec) { }
1 2071 elsif (not ref $spec) { }
849 1222 elsif (&reftype($spec) eq 'CODE') { }
724 846 3 unless defined $event->ending
743 85 2120 if defined wantarray
745 1 2119 unless defined(my $build = get_build())