Branch Coverage

blib/lib/Lingua/PT/Actants.pm
Criterion Covered Total %
branch 21 44 47.7


line true false branch
13 1 0 if (exists $args{'conll'}) { }
43 0 5 if $line =~ /^\s*$/
60 1 4 if $_->{'rule'} eq 'ROOT'
73 4 21 if $_->{'dep'} == $node->{'id'}
84 1 0 if ($node->{'pos'} eq 'VERB')
87 0 3 if ($c->{'pos'} eq 'VERB' and $c->{'rule'} eq 'conj') { }
106 1 0 if ($node->{'pos'} eq 'VERB')
109 0 3 if $c->{'pos'} eq 'VERB'
111 0 1 if ($found)
114 0 0 unless $_->{'id'} == $found->{'id'}
129 0 0 if (ref $data eq 'ARRAY') { }
216 2 2 if ($self->_score($i) > 0)
219 4 0 if $i->{'child'}
231 0 0 unless @cores
246 0 0 unless @cores
256 0 0 exists $c->{'child'} ? :
258 0 0 unless (_is_core($_, @cs))
278 0 0 if $_->{'id'} == $c->{'id'}
289 2 2 if $token->{'pos'} =~ /^(noun|propn|prop)$/i
290 1 3 if $token->{'pos'} =~ /^(punct)$/i
293 1 3 if $token->{'rule'} =~ /^(nsubj|nsubjpass)$/i
294 0 4 if $token->{'rule'} =~ /^(nmod)$/i