Branch Coverage

blib/lib/Test/ExpectAndCheck.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
106 15 0 unless defined $file
148 5 0 unless defined $file
160 0 8 if (not defined $v) { }
0 8 elsif (&blessed($v) and $v->isa('Test::Deep::Ignore')) { }
2 6 elsif ($v =~ /^-?[0-9]+$/) { }
6 0 elsif ($v =~ /^[\x20-\x7E]*\z/) { }
174 0 0 if ($v =~ /[^\n\x20-\x7E]/) { }
197 13 12 if $e = &first(sub { not $_->_called; } , @{$$self{"expectations"};}) and $e->_consume($method, @args)
201 10 2 if (my $wh = &first(sub { $_->_consume($method, @args); } , @{$$self{"whenever"}{$method};}))
206 1 1 if $e
207 1 1 unless $e
236 6 15 if not $count
247 5 2 unless @$whenevers
408 0 26 unless $method eq $self->{'method'}
411 3 23 unless ($ok)
427 1 14 if defined $self->{'diag'}
435 3 20 if (my $also = $self->{'also'})
440 22 1 if $self->{'gen_return'}
441 0 22 if wantarray
476 3 25 if $method eq "DESTROY"