Branch Coverage

blib/lib/Farabi/Editor.pm
Criterion Covered Total %
branch 13 110 11.8


line true false branch
108 1 0 if ($self->app->support_can_be_enabled('Perl::Critic'))
123 1 0 if ($self->app->support_can_be_enabled('Perl::Tidy'))
132 0 1 if ($self->app->support_can_be_enabled('Perl::Strip'))
141 0 1 if ($self->app->support_can_be_enabled('Spellunker'))
150 0 1 if ($self->app->support_can_be_enabled('Code::CutNPaste'))
159 0 1 if ($self->app->support_can_be_enabled('App::Midgen'))
169 1 0 if ($self->app->support_can_be_enabled('Dist::Zilla') or defined File::Which::which('make'))
193 0 1 if (defined File::Which::which('jshint'))
202 1 0 if (defined File::Which::which('git'))
223 0 1 if (defined File::Which::which('ack'))
233 1 0 if (defined File::Which::which('cpanm'))
248 6 15 unless defined $$menus{$menu}
276 0 0 unless (defined $source)
282 0 0 unless (defined $severity)
318 0 0 if (defined $source)
326 0 0 if (defined $input)
333 0 0 if (defined $input_fh) { }
335 0 0 if (defined $source_fh) { }
344 0 0 if (defined $source_fh) { }
389 0 0 unless (defined $source)
414 0 0 if ($@)
418 0 0 if (defined $errorfile)
433 0 0 if (open my $fh, '<', $filename) { }
520 0 0 if ($num_errors != -1 and $num_errors != 0 || $num_warnings != 0)
522 0 0 if (/^(.+?) at line (\d+) in file \S+$/)
547 0 0 if ($action_name =~ /^.*$query.*$/i)
574 0 0 if (not $dir or $dir eq '')
602 0 0 if (scalar @files > $MAX_RESULTS)
617 0 0 if (open my $fh, '<', $filename) { }
663 0 0 if (defined $id) { }
692 0 0 if ($filename =~ /\.([^.]+)$/)
723 0 0 unless defined $extension
751 0 0 if ($runtime_id eq 'perl')
759 0 0 unless (defined $runtime)
780 0 0 unless finish($h)
807 0 0 unless ($devel_repl)
811 0 0 if ($@)
829 0 0 if ($code eq '') { }
837 0 0 if ($devel_repl->is_error(@ret)) { }
860 0 0 unless ($filename)
871 0 0 unless ($source)
881 0 0 if (open my $fh, '>', $filename) { }
907 0 0 unless ($dirs)
917 0 0 if ($dirs ne '')
933 0 0 if ($@)
978 0 0 unless (defined $source)
1060 0 0 if (defined $valid_cmds{$cmd}) { }
1117 0 0 if (-z 'dist.ini') { }
0 0 elsif (-z 'Makefile.PL') { }
1127 0 0 if (defined $valid_cmds{$cmd}) { }
1128 0 0 if ($cmd eq 'build') { }
1129 0 0 $project_type eq 'dzil' ? :
1155 0 0 unless (defined $source)
1200 0 0 if ($topic eq '')
1206 0 0 if ($Farabi::Editor::Type{$topic}) { }