| line |
true |
false |
branch |
|
43
|
0 |
0 |
unless defined $COLOR and not $COLOR |
|
44
|
0 |
0 |
unless defined $pager and not $pager |
|
46
|
0 |
0 |
if ($help) { } |
|
|
0 |
0 |
elsif ($version) { } |
|
|
0 |
0 |
elsif (not @ARGV) { } |
|
63
|
0 |
0 |
unless my $search = search($query) |
|
66
|
0 |
0 |
if ($list) { } |
|
117
|
0 |
0 |
unless ($response->is_success) |
|
126
|
0 |
0 |
if ($@ or not $result) |
|
135
|
0 |
0 |
unless my $search = shift() |
|
137
|
0 |
0 |
$$search{'count'} != 1 ? : |
|
|
0 |
0 |
@$results != 1 ? : |
|
144
|
0 |
0 |
if $display_total and $display_total != $$search{'count'} |
|
168
|
0 |
0 |
if (length $snippet < $start + $len) |
|
171
|
0 |
0 |
if ($DEBUG) |
|
182
|
0 |
0 |
if ($$match{'line'}) |
|
193
|
0 |
0 |
$$file{'truncated'} != 1 ? : |
|
|
0 |
0 |
if $$file{'truncated'} |
|
197
|
0 |
0 |
$$result{'truncated'} != 1 ? : |
|
|
0 |
0 |
if $$result{'truncated'} |
|
204
|
0 |
0 |
unless my $search = shift() |
|
219
|
0 |
0 |
unless -t STDOUT |
|
223
|
0 |
0 |
if $pager =~ /less/ |
|
225
|
0 |
0 |
if $pager =~ /more|less/ and ($ENV{'LESSCHARSET'} || '') ne 'utf-8' |
|
228
|
0 |
0 |
unless open STDOUT, "| $pager" |
|
235
|
0 |
1 |
unless close STDOUT |
|
244
|
0 |
0 |
if (not $@ and supports_color()) |
|
253
|
0 |
0 |
ref $_[0] ? : |
|
259
|
0 |
0 |
unless -t *STDOUT or $COLOR |
|
261
|
0 |
0 |
if ($App::cpangrep::Config{'osname'} eq 'MSWin32') { } |
|
263
|
0 |
0 |
unless $@ |
|
266
|
0 |
0 |
if $ENV{'TERM'} =~ /^(xterm|rxvt|linux|ansi|screen)/ |
|
267
|
0 |
0 |
if $ENV{'COLORTERM'} |
|
273
|
0 |
0 |
unless $DEBUG |