Branch Coverage

lib/Kephra/Document/Data.pm
Criterion Covered Total %
branch 0 114 0.0


line true false branch
10 0 0 if defined $values{$_[0]}
11 0 0 if defined $_[1]
14 0 0 if defined $values{$_[0]}
28 0 0 if $nr < 0
30 0 0 if Kephra::App::EditPanel::is($ep)
39 0 0 unless defined $inc and $inc
41 0 0 unless defined $base
44 0 0 if $nr < 0
45 0 0 if $nr > $last_nr
50 0 0 if defined $_[0]
53 0 0 if defined $_[0] and validate_doc_nr($_[0]) > -1
57 0 0 if ref $fconf
62 0 0 unless defined $nr
63 0 0 unless $nr eq int $nr
64 0 0 exists $attributes[$nr] ? :
68 0 0 $nr == -1 ? :
74 0 0 if $current_nr >= $nr
75 0 0 if $previous_nr >= $nr
79 0 0 if $nr < 0 or exists $attributes[$nr]
84 0 0 if $nr < 0
91 0 0 unless defined $attr or $attr
93 0 0 defined $nr ? :
94 0 0 if $nr < 0
95 0 0 if defined $attributes[$nr]{$attr}
101 0 0 unless defined $value
103 0 0 defined $nr ? :
104 0 0 if $nr < 0
112 0 0 if $nr < 0 or ref $attr ne 'HASH'
119 0 0 if $nr < 0
121 0 0 if (ref $params eq 'ARRAY') { }
0 0 elsif (ref $params eq 'HASH') { }
132 0 0 if (defined $_[1]) { }
139 0 0 defined $_[0] ? :
151 0 0 if $doc_nr < 0
154 0 0 if $volume
158 0 0 if (length $file > 0)
160 0 0 if @filenameparts > 1
178 0 0 unless $given_path
180 0 0 if (defined $attributes[$_]{'file_path'} and $attributes[$_]{'file_path'} eq $given_path)
188 0 0 if nr_from_file_path(shift()) > -1
190 0 0 if $values{'loaded'}
195 0 0 if $ep eq _ep($_)
203 0 0 if $ep
212 0 0 if $nr < 0
213 0 0 unless defined $file
220 0 0 if $nr < 0
222 0 0 unless ref $config eq 'HASH'
223 0 0 unless defined $file
229 0 0 defined $file && -e $file ? :
234 0 0 if $nr == current_nr()
239 0 0 if $doc_nr < 0
250 0 0 if ($$attr{'selstart'} and $$attr{'selstart'}) { }
251 0 0 $$attr{'cursor_pos'} < $$attr{'selend'} ? :
256 0 0 if ($$config{'open'}{'in_current_dir'}) { }
257 0 0 if $$attr{'directory'}
262 0 0 if Kephra::App::EditPanel::Indicator::bracelight_visible()
273 0 0 if $doc_nr < 0