Branch Coverage

lib/Devel/Trepan/Complete.pm
Criterion Covered Total %
branch 22 46 47.8


line true false branch
71 1132 6577 if (0 == index($cmd, $prefix))
81 32 0 if scalar @_ < 3
85 67 771 if (0 == index($cmd_name, $cmd_prefix . $prefix))
105 0 0 if 0 == index($cmd, $prefix) and not exists $$expanded{$aliases->{$cmd}}
124 1 755 if (0 == index($cmd, $prefix) and not exists $expanded{$aliases->{$cmd}})
144 1 46 if 0 == $strlen
147 43 3 if ($look_at =~ /^(\s*)(\S+)\s*/) { }
3 0 elsif ($look_at =~ /^(\s+)$/) { }
0 0 elsif ($look_at =~ /^(\S+)\s*/) { }
175 0 0 unless defined $pattern
176 0 0 unless defined $add_suffix
179 0 0 if ($add_suffix)
181 0 0 if (-l $_) { }
0 0 elsif (-d _) { }
0 0 elsif (-x _) { }
0 0 elsif (-S _ or -p _) { }
199 2 4 unless (@signal_complete_completions)
214 2 3 if (0 == index($prefix, 'CORE::')) { }
229 0 10 if (substr($prefix, 0, 1) eq '&')
234 4 6 if (scalar @functions == 0 and not $prefix =~ /::/)
236 0 4 if ($have_fn_sigl) { }
256 2 0 if (scalar @parts > 1)
259 2 0 if $pkg =~ /^$prefix/