Branch Coverage

blib/lib/MooseX/Role/Matcher.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
170 3 109 if (not defined $seek) { }
16 93 elsif (ref $seek eq 'CODE') { }
6 87 elsif (ref $seek eq 'ARRAY') { }
2 85 elsif (not defined $value) { }
24 61 elsif (ref $seek eq 'Regexp') { }
27 34 elsif (ref $seek eq 'HASH') { }
179 5 4 if $self->_match($value, $_)
192 2 25 unless &blessed($value) and $value->does('MooseX::Role::Matcher')
250 6 72 if @_ % 2 == 1
257 1 103 unless $self->can($name) or $allow_missing_methods
259 100 3 $self->can($name) ? :
262 77 26 $self->_match($value, $seek) ? :
264 10 93 if ($invert) { }
265 3 7 if $matched
268 19 74 unless $matched