Branch Coverage

blib/lib/Test/Stream/Plugin/Compare.pm
Criterion Covered Total %
branch 94 94 100.0


line true false branch
49 78 1362 if ($delta) { }
66 3 427 if ($delta) { }
163 1 4 unless my $build = get_build()
165 1 3 unless $build->can('add_filter')
168 1 2 if defined wantarray
175 1 138 unless my $build = get_build()
177 1 137 unless $build->can('ending')
180 1 136 if defined wantarray
188 1 1055 unless my $build = get_build()
190 1 1054 unless $build->can('add_call')
193 1 1053 if defined wantarray
209 1 216 unless my $build = get_build()
211 1 215 unless $build->can('add_prop')
214 1 214 if defined wantarray
232 1 195 unless my $build = get_build()
234 1 194 unless $build->can('add_item')
237 1 193 if defined wantarray
253 1 79 unless my $build = get_build()
255 1 78 unless $build->can('add_field')
258 1 77 if defined wantarray
275 1 17 unless my $build = get_build()
277 1 16 unless $build->can('add_check')
280 1 15 if defined wantarray
303 7 14 if ($btype eq 'CODE') { }
320 1 290 unless $intype
323 1 289 if ($intype =~ /^\+(.*)$/) { }
331 1 289 if (not $spec) { }
1 288 elsif (not ref $spec) { }
109 179 elsif (&reftype($spec) eq 'CODE') { }
362 5 284 if defined wantarray
364 1 283 unless my $build = get_build()
371 534 8500 unless defined $thing
374 2674 5268 if ($thing and &blessed($thing) and $thing->isa('Test::Stream::Compare'))
375 1025 1649 unless $thing->isa('Test::Stream::Compare::Wildcard')
377 1466 183 unless $newthing->builder
378 1523 126 unless $newthing->_file
379 1523 126 unless $newthing->_lines
385 509 181 $strict ? :
690 5136 if $type eq 'ARRAY'
388 474 128 $strict ? :
602 4534 if $type eq 'HASH'
391 1437 3097 unless ($strict)
392 500 937 if $type eq 'REGEXP'
395 31 906 if $type eq 'CODE'
399 4 3999 if $type eq 'REGEXP'
402 9 3990 if ($type eq 'SCALAR')
407 139 3851 if $type