Branch Coverage

blib/lib/Test/Proto/Role/Value.pm
Criterion Covered Total %
branch 49 56 87.5


line true false branch
117 2 1 if ($self->subject) { }
132 1 2 if ($self->subject) { }
162 1 1 if (defined $self->subject) { }
177 1 5 if (defined $self->subject) { }
202 19 10 if ($self->subject =~ /$re/) { }
218 1 1 if (not $self->subject =~ /$re/) { }
241 18 31 if ($$data{'expected'}($self->subject)) { }
292 2 1 if (CORE::ref($self->subject) =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|Regexp)$/) { }
1 0 elsif (&Scalar::Util::blessed($self->subject)) { }
0 0 elsif (not defined $$data{'expected'} or $$data{'expected'} eq '') { }
293 1 1 if ($1 eq $$data{'expected'})
298 1 0 if ($self->subject->isa($$data{'expected'}))
320 14 3 unless defined $expected
432 1 2 unless defined $refaddr
444 1421 201 if ($result) { }
458 233 194 if ($result) { }
511 5 8 if $result
539 4 8 unless $result
568 5 7 if $result
584 0 9 unless defined $count
599 17 8 if upgrade($candidate)->validate($self->subject, $self->subtest)
601 5 4 if upgrade($$data{'count'})->validate($i, $self->subtest)
621 8 15 if &Scalar::Util::looks_like_number($self->subject)
641 8 15 if &Scalar::Util::looks_like_number($self->subject)
660 1 2 unless CORE::ref $self->subject
661 2 0 unless isweak($self->subject)
680 1 2 unless CORE::ref $self->subject
681 0 2 if isweak($self->subject)