Branch Coverage

blib/lib/App/dategrep.pm
Criterion Covered Total %
branch 49 56 87.5


line true false branch
25 0 7 defined $rc ? :
33 17 18 if ($ENV{'DATEGREP_DEFAULT_FORMAT'})
43 1 34 unless ($rc)
48 0 34 if ($options{'version'})
53 0 34 if ($options{'help'})
57 0 34 if ($options{'man'})
70 1 33 if (exists $config->{'formats'})
74 1 33 unless (defined $options{'format'})
78 12 21 if (exists $named_formats{$options{'format'}})
82 1 32 if ($options{'skip-unparsable'})
88 23 10 if (defined $options{'start'})
90 2 21 unless defined $start
93 20 11 if (defined $options{'end'})
95 1 19 unless defined $end
98 1 29 if (defined $options{'last-minutes'})
102 5 25 if ($end < $start)
106 1 29 if (defined $options{'debug'} and $options{'debug'} eq 'time')
111 2 27 unless (@ARGV)
117 2 27 if ($options{'byte-offsets'})
118 2 0 if (@ARGV == 1 and -f $ARGV[0])
127 1 1 unless (defined $byte_end)
142 1 26 if ($options{'interleave'})
147 1 25 if ($options{'sort-files'})
152 28 0 if ($iter)
159 3 26 if $@
165 32 1 if (not $configfile and $ENV{'HOME'})
168 33 1 unless (defined $configfile and -e $configfile)
173 0 1 unless (defined $config)