Branch Coverage

lib/Kephra/App/EditPanel/Fold.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
8 0 0 Kephra::App::EditPanel::is($_[0]) ? :
15 0 0 if $level % 1024 < ($level >> 16) % 1024
19 0 0 if _ep_ref()->GetFoldParent($line + 1) == $line
26 0 0 if ($line == -1)
27 0 0 if (defined $event and ref $event eq 'Wx::StyledTextEvent') { }
40 0 0 unless $ep->GetFoldExpanded($_)
49 0 0 if $doc_nr < 0 or not ref $ep
51 0 0 unless ref $lines eq 'ARRAY'
53 0 0 if $ep->GetFoldExpanded($_)
63 0 0 if _config()->{'keep_caret_visible'} and not $ep->GetFoldExpanded($line)
71 0 0 unless (_is_node($line))
73 0 0 if $line == -1
79 0 0 if $ep->GetFoldExpanded($cursor) xor $node_xpanded
82 0 0 if _config()->{'keep_caret_visible'} and not $node_xpanded
88 0 0 if $line < 0 or $line > $ep->GetLineCount - 1
94 0 0 if $parent == -1
96 0 0 if $ep->GetFoldLevel($cursor) == $level and ($ep->GetFoldExpanded($cursor) xor $xp)
100 0 0 if _config()->{'keep_caret_visible'} and not $xp
108 0 0 if $line < 0 or $line > $ep->GetLineCount - 1
112 0 0 if $ep->GetFoldLevel($_) == $level and ($ep->GetFoldExpanded($_) xor $xp)
115 0 0 if _config()->{'keep_caret_visible'} and not $xp
129 0 0 $root_unfolded ? :
130 0 0 if _config()->{'keep_caret_visible'} and $root_unfolded
137 0 0 if $ep->GetFoldExpanded($cursor)
145 0 0 unless $ep->GetFoldExpanded($cursor)