Condition Coverage

blib/lib/Markdown/Compiler/Parser.pm
Criterion Covered Total %
condition 23 56 41.0


and 3 conditions

line !l l&&!r l&&r condition
96 317 0 110 $token->{'children'} and @{$token->{'children'};} >= 1
101 0 0 1 $token->can('data') && $token->data
1 0 0 $token->can('href') && $token->href
1 0 0 $token->can('title') && $token->title
1 0 0 $token->can('size') && $token->size
1 0 0 $token->can('text') && $token->text
1 0 0 $token->can('language') && $token->language
0 0 1 $token->can('content') && $token->content
0 1 0 $token->can('children') && $token->children
122 0 0 1 $self->tree->[0] and $self->tree->[0]{'class'} eq 'Markdown::Compiler::Parser::Node::Metadata'
246 1 1 6 exists $tokens->[0] and $tokens->[0]->type eq 'LineBreak'
424 3 0 3 $todo_token->type eq 'Char' and $todo_token->content eq '|'
452 3 0 3 $todo_token->type eq 'Char' and $todo_token->content eq '|'
662 0 0 4 $lvl == 0 and $token->type eq 'Item'
752 2 1 8 $lvl == 0 and $token->type eq 'Item'
844 0 0 0 exists $tokens->[0] and $tokens->[0]->type eq 'LineBreak'

or 2 conditions

line l !l condition
952 0 0 $index ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
690 0 0 0 $token->length < $lvl or $token->type eq 'Item'
780 0 0 1 $token->length < $lvl or $token->type eq 'Item'