blib/lib/App/loggrep.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 69 | 71.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
80 | 3 | 0 | 2 | $opt->before and $opt->before > $before |
82 | 4 | 0 | 1 | $opt->after and $opt->after > $after |
179 | 26 | 1 | 7 | $blank and $previous |
27 | 6 | 1 | $blank and $previous and $previous + 1 < $lineno |
line | l | !l | condition |
---|---|---|---|
46 | 2 | 10 | $opt->include // [] |
49 | 0 | 12 | $opt->include_quoted // [] |
52 | 2 | 10 | $opt->exclude // [] |
54 | 0 | 12 | $opt->exclude_quoted // [] |
79 | 2 | 3 | $opt->context // 0 |
81 | 2 | 3 | $opt->context // 0 |
90 | 0 | 12 | $opt->module // [] |
91 | 0 | 0 | $opt->module // [] |
113 | 0 | 12 | &$evaler($opt->exec, 'exec') // sub { shift(); } |
141 | 0 | 12 | $time //= sub { str2time($1) if (shift()) =~ /$date/; } |
147 | 0 | 1 | $separator //= '' |
211 | 35 | 46 | &$gd($line) // 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
57 | 8 | 0 | 4 | $opt->start // $opt->moment |
64 | 8 | 0 | 4 | $opt->end // $opt->moment |
70 | 2 | 2 | 8 | @inclusions or @exclusions |
4 | 8 | 0 | @inclusions or @exclusions or $start | |
10 | 0 | 0 | @inclusions or @exclusions or $start or $end | |
73 | 1 | 0 | 11 | $opt->blank || defined $opt->separator |
78 | 2 | 2 | 8 | $opt->context or $opt->before |
4 | 1 | 7 | $opt->context or $opt->before or $opt->after | |
145 | 0 | 0 | 12 | $warn || $die |
146 | 1 | 0 | 11 | $blank ||= defined $separator |
185 | 8 | 0 | 4 | $start || $end |