Condition Coverage

blib/lib/File/Codeowners.pm
Criterion Covered Total %
condition 33 49 67.3


and 3 conditions

line !l l&&!r l&&r condition
66 20 1 1 $opts{'aliases'} and $line =~ /^\h*\@($RE_OWNER)\h+(.+)/
250 1 3 1 not $pattern and $self->{'owners'}
254 30 8 6 $pattern and $line->{'pattern'}
8 1 5 $pattern and $line->{'pattern'} and $pattern ne $line->{'pattern'}
269 1 2 0 not $owner and $self->{'patterns'}
273 18 2 12 $owner and not grep({$_ eq $owner;} @{[] unless $line->{'owners'};})
322 0 0 2 $pattern and $owners
345 0 0 1 $project and $owners
354 12 1 1 $line->{'project'} and $line->{'owners'}
368 0 0 0 $old_owner and $new_owner
391 0 0 1 $old_project and $new_project

or 2 conditions

line l !l condition
74 2 0 $1 || undef
231 18 0 $_ || {}
4 2 $self->{'match_lines'} ||= [reverse(grep({+($_ || {})->{'pattern'};} @{$self->_lines;}))]
453 27 0 +(shift())->{'lines'} ||= []
454 5 0 +(shift())->{'unowned'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
234 8 7 0 $line->{'matcher'} ||= build_gitignore_matcher([$line->{'pattern'}])
398 12 0 2 not exists $line->{'project'} or $old_project ne $line->{'project'}