Condition Coverage

blib/lib/Org/Document.pm
Criterion Covered Total %
condition 116 137 84.6


and 3 conditions

line !l l&&!r l&&r condition
134 2 0 55 defined $args and length $args
213 141 44 85 $last_el and $last_el->isa("Org::Element::ListItem")
254 674 3 3 $m{'block'} and $pass == 2
603 7 7 $m{'fixedw'} and $pass == 2
574 18 18 $m{'comment'} and $pass == 2
580 6 6 $m{'table'} and $pass == 2
556 15 15 $m{'drawer'} and $pass == 2
391 90 90 $m{'li_header'} and $pass == 2
139 171 171 $m{'headline'} and $pass == 2
270 52 2 6 $m{'setting_indent'} and not grep({$_ eq $uc_setting_name;} @{"Org::Element::Setting"->indentable_settings;})
459 2 11 172 $container->children and @{$container->children;} == 1
13 0 172 $container->children and @{$container->children;} == 1 and $container->children->[0]->isa("Org::Element::Text")
479 266 698 1012 defined $m{'plain_text'} and $pass == 2
489 952 6 6 $m{'link'} and $pass == 2
954 0 0 $m{'target'} and $pass == 2
952 1 1 $m{'fn_num'} and $pass == 2
951 1 1 $m{'fn_namedef'} and $pass == 2
946 3 3 $m{'fn_nameidef'} and $pass == 2
943 3 3 $m{'trange'} and $pass == 2
897 23 26 $m{'tstamp'} and $pass == 2
910 5 5 $m{'act_trange'} and $pass == 2
865 21 29 $m{'act_tstamp'} and $pass == 2
843 19 24 $m{'markup_start'} and $pass == 2
780 34 48 $m{'markup_end'} and $pass == 2
495 3 0 3 defined $m{'link_desc'} and length $m{'link_desc'}
602 194 0 394 @plain_text and $pass == 2
662 40 7 13 $c->[$i]{'_mu_end'} and $c->[$i]->text eq $mu
670 9 0 13 $has_text && !$has_unmarkable && $mu_end_index && $newlines <= 1

or 2 conditions

line l !l condition
617 407 6 $parent->children // []
716 215 0 $els->[$i]->style // ""
720 104 0 $$els[$i + 1]->style // ""
723 83 0 $$els[$i + 1]{'text'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
122 12 0 81 @{$self->todo_states;} or @{$self->done_states;}
198 878 737 3114 $last_listitem // $last_headline
1615 3114 0 ($last_listitem // $last_headline) // $self
232 11 0 0 $last_headline // $self
344 83 7 0 $last_headline // $self
353 45 4 41 not $list or $list->type ne $type
49 2 39 not $list or $list->type ne $type or $list->bullet_style ne $bstyle
388 171 0 0 $parent //= $self
433 360 310 0 $el or $pass != 2
467 591 0 0 $parent //= $self
534 1 1 1 ($m{'fn_nameidef_def'} ? 0 : 1) || !length($m{'fn_nameidef_name'})
596 147 814 0 $el or $pass != 2
715 33 104 215 $els->[$i]->children or not $els->[$i]->isa("Org::Element::Text")
718 103 20 175 $i + 1 >= @$els or $$els[$i + 1]->children
123 71 104 $i + 1 >= @$els or $$els[$i + 1]->children or not $$els[$i + 1]->isa("Org::Element::Text")