Branch Coverage

blib/lib/Lingua/PT/Actants.pm
Criterion Covered Total %
branch 29 44 65.9


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