Branch Coverage

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


line true false branch
19 0 0 if ($$config{'single_doc'} == 1)
23 0 0 unless ($mode eq 'new')
24 0 0 if ($ep->GetText eq '' and $ep->GetModify == 0 and not $file && -e $file)
25 0 0 if $$config{'into_empty_doc'} == 1 or $$config{'into_only_empty_doc'} == 1 and $new_doc_nr == 1
43 0 0 unless -r $file and Kephra::App::EditPanel::is($ep)
47 0 0 if (Kephra::File::IO::open_buffer($doc_nr))
67 0 0 unless defined $doc_nr
87 0 0 if (-e $file)
89 0 0 if $$config{'open'}{'only_text'} == 1 and -B $file
91 0 0 if $$config{'open'}{'each_once'} == 1 and Kephra::Document::Data::file_already_open($file)
111 0 0 if (defined $file and -e $file)
117 0 0 if $$config{'open'}{'each_once'} == 1 and $other_nr > -1
124 0 0 if $doc_nr > 0 and $doc_nr == $old_nr
131 0 0 unless do { 'EOL', $doc_nr }->Kephra::Document::Data::get_attribute eq 'auto'
155 0 0 unless ref $coderef eq 'CODE'
165 0 0 unless ref $code eq 'CODE'