Branch Coverage

blib/lib/File/PackageIndexer/PPI/ClassXSAccessor.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
18 21 10 defined $curpkg ? :
27 0 351 if $token->class eq 'PPI::Token::Whitespace'
28 31 320 if not $started and $token->content =~ /^Class::XSAccessor(?:::Array)?$/
29 31 289 unless $started
32 2 287 if ($token->isa('PPI::Structure::List'))
35 2 0 $t->isa('PPI::Statement::Expression') ? :
40 79 208 if ($state eq 'key') { }
129 79 elsif ($state eq 'comma') { }
79 0 elsif ($state eq 'value') { }
42 0 79 unless defined $keyname
47 0 129 unless $token->isa('PPI::Token::Operator')
48 0 129 if $token->content eq ';'
49 0 129 unless $token->content =~ /^(?:,|=>)$/
50 79 50 defined $key ? :
53 8 71 if ($key eq 'class') { }
18 53 elsif ($key =~ /^(?:chained|replace)$/) { }
51 2 elsif ($token->isa('PPI::Structure::Constructor')) { }
2 0 elsif ($token->isa('PPI::Token::Quote')) { }
54 8 0 $token->isa('PPI::Token::Quote') ? :
61 17 34 if ($struct and ref $struct eq 'ARRAY') { }
34 0 elsif ($struct and ref $struct eq 'HASH') { }