Branch Coverage

lib/Kephra/File/Session.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
19 0 0 if ref $node eq 'REF' and ref $$node eq 'ARRAY'
20 0 0 if (ref $node eq 'ARRAY')
23 0 0 if (defined $files[$_]{'file_path'} and -e $files[$_]{'file_path'})
34 0 0 if (length $filename > 0)
35 0 0 if $filename =~ /\\/
36 0 0 if $filename =~ m[/]
38 0 0 if $dir
43 0 0 unless %$session_data and $$session_data{'document'} and $$session_data{'document'}[0]
54 0 0 if $$session_data{'current_nr'} and not $loaded and Kephra::App::EditPanel::_ref()->GetText eq ''
63 0 0 if not defined $start_nr or $start_nr < 0
64 0 0 if $start_nr >= $buffer
76 0 0 unless -e $file
93 0 0 if (-r $file) { }
95 0 0 if (ref $session_def eq 'HASH') { }
116 0 0 unless $file
121 0 0 if -r $file
140 0 0 if (length $file_name > 0)
148 0 0 if defined $config and $config and not $config eq 'not'
152 0 0 if (do_autosave()) { }
162 0 0 if do_autosave()
182 0 0 if (-r $file)
183 0 0 if (open my $FH, '<', $file) { }
188 0 0 if (-e $3)
189 0 0 if $1
194 0 0 if (@load_files) { }
219 0 0 if (length $file > 0)
220 0 0 if (open my $FH, '>', $file) { }
225 0 0 if (-e $file_attr{'file_path'})
227 0 0 if $_ == $current