Branch Coverage

lib/CGI/Application/Plugin/HelpMan.pm
Criterion Covered Total %
branch 14 58 24.1


line true false branch
42 0 0 unless $self->hm_term_get
49 0 0 unless $self->_term_abs_path
55 0 0 unless $$self{'_hm_data_'}{'_term_abs_path'} ||= __find_abs($self->hm_term_get)
62 0 0 unless $self->_doc_html
69 0 0 unless my $html = $self->_doc_html
70 0 0 if ($html =~ m[]*>(.+)]is)
77 0 0 unless $length > 500
88 0 0 unless my $html = $self->_doc_html
91 0 0 if ($html =~ m[]*>(.+)]is) { }
0 0 elsif ($self->hm_term_get) { }
117 0 0 unless defined $term
126 0 0 unless ($$self{'_hm_data_'}{'_man_searchterm'})
148 0 0 unless (defined $$self{'_hm_data_'}{'_abs_path_htmlcode'})
150 0 0 unless ($self->_term_abs_path)
187 0 0 unless $caller
189 0 0 unless ($self->hm_term_get eq $caller)
213 0 9 unless defined $abs and defined $tmp
219 0 9 unless chdir $tmp
235 0 9 unless my $html = File::Slurp::slurp($out)
247 0 11 unless $term
256 9 2 if ($abs = $pss->find($as_namespace)) { }
0 2 elsif (defined $as_command) { }
262 0 0 unless $abs = File::Which::which($as_command)
266 0 0 unless Cwd::abs_path($abs)
273 0 11 unless defined $term
275 10 1 unless __string_looks_like_command($term)
280 0 11 unless $string
281 10 1 unless $string =~ /^[a-z]+[\w\-]+[a-zA-Z]+$/
287 0 11 unless defined $term