Condition Coverage

blib/lib/Module/AnyEvent/Helper/PPI/Transform.pm
Criterion Covered Total %
condition 80 144 55.5


and 3 conditions

line !l l&&!r l&&r condition
34 2 0 899 blessed $word and $word->isa('PPI::Element')
45 2 0 292 blessed $word and $word->isa('PPI::Token::Word')
46 24 196 72 defined $word->parent && $word->parent->class eq 'PPI::Statement::Sub'
53 2 0 21 blessed $word and $word->isa('PPI::Token::Word')
62 12 0 47 blessed $prev and $prev->isa('PPI::Element')
2 0 10 blessed $next and $next->isa('PPI::Element')
63 2 0 55 blessed $target and $target->isa('PPI::Element')
83 2 0 9 blessed $block and $block->isa('PPI::Structure::Block')
92 2 0 9 blessed $word and $word->isa('PPI::Token::Word')
103 0 0 19 blessed $word and $word->isa('PPI::Element')
113 4 18 4 $state eq 'INIT' || $state eq 'LIST' || $state eq 'TERM' || $state eq 'SUBTERM' and $sprev->isa('PPI::Token::Operator')
22 0 4 $state eq 'INIT' || $state eq 'LIST' || $state eq 'TERM' || $state eq 'SUBTERM' and $sprev->isa('PPI::Token::Operator') and $sprev->content eq '->'
18 4 0 $state eq 'OP' and $sprev->isa('PPI::Structure::List')
18 4 0 $state eq 'OP' || $state eq 'LIST' and $sprev->isa('PPI::Token::Word') || $sprev->isa('PPI::Token::Symbol')
18 0 0 $state eq 'OP' || $state eq 'SUBTERM' and $sprev->isa('PPI::Structure::Constructor') || $sprev->isa('PPI::Structure::List') || $sprev->isa('PPI::Structure::Subscript')
18 0 0 $state eq 'OP' || $state eq 'SUBTERM' and $sprev->isa('PPI::Token::Word') || $sprev->isa('PPI::Token::Symbol')
15 3 0 $state eq 'OP' || $state eq 'TERM' and $sprev->isa('PPI::Structure::Block')
18 0 0 $state eq 'BLOCK' and $sprev->isa('PPI::Token::Cast')
152 0 0 19 blessed $word and $word->isa('PPI::Element')
159 0 0 19 $next and $next->isa('PPI::Structure::List')
176 2 0 19 blessed $word and $word->isa('PPI::Element')
216 0 0 9 blessed $doc and $doc->isa('PPI::Element')
228 0 0 9 blessed $doc and $doc->isa('PPI::Element')
302 72 0 1 not $word->snext_sibling || $word->sprevious_sibling and $word->parent
72 0 1 not $word->snext_sibling || $word->sprevious_sibling and $word->parent and $word->parent->isa('PPI::Statement::Expression')
0 0 1 not $word->snext_sibling || $word->sprevious_sibling and $word->parent and $word->parent->isa('PPI::Statement::Expression') and $word->parent->parent
0 0 1 not $word->snext_sibling || $word->sprevious_sibling and $word->parent and $word->parent->isa('PPI::Statement::Expression') and $word->parent->parent and $word->parent->parent->isa('PPI::Structure::Subscript')
305 0 72 0 $word->snext_sibling and $word->snext_sibling->isa('PPI::Token::Operator')
72 0 0 $word->snext_sibling and $word->snext_sibling->isa('PPI::Token::Operator') and $word->snext_sibling->content eq '=>'

or 3 conditions

line l !l&&r !l&&!r condition
59 10 2 47 not defined $_[0] or $_[0] eq ''
12 45 2 not defined $_[0] or $_[0] eq '' or blessed($_[0])
62 47 0 12 blessed $prev and $prev->isa('PPI::Element') or blessed $next and $next->isa('PPI::Element')
113 3 0 4 $state eq 'INIT' || $state eq 'LIST' || $state eq 'TERM' || $state eq 'SUBTERM'
4 0 18 $state eq 'OP' || $state eq 'LIST'
0 4 0 $sprev->isa('PPI::Token::Word') || $sprev->isa('PPI::Token::Symbol')
0 0 18 $state eq 'OP' || $state eq 'SUBTERM'
0 0 0 $sprev->isa('PPI::Structure::Constructor') || $sprev->isa('PPI::Structure::List') || $sprev->isa('PPI::Structure::Subscript')
0 0 18 $state eq 'OP' || $state eq 'SUBTERM'
0 0 0 $sprev->isa('PPI::Token::Word') || $sprev->isa('PPI::Token::Symbol')
0 3 15 $state eq 'OP' || $state eq 'TERM'
15 3 0 $state eq 'INIT' or $state eq 'TERM'
18 0 0 $state eq 'INIT' or $state eq 'TERM' or $state eq 'SUBTERM'
137 15 4 0 $state eq 'INIT' or $state eq 'TERM'
19 0 0 $state eq 'INIT' or $state eq 'TERM' or $state eq 'SUBTERM'
247 0 9 0 ref $self || $self
290 18 1 53 $self->_is_translate_func($name) || $self->_is_remove_func($name) || $self->_is_replace_func($name)
302 72 0 1 $word->snext_sibling || $word->sprevious_sibling
322 18 3 51 $self->_is_remove_func($word->content) or $self->_is_delete_func($word->content)