Branch Coverage

blib/lib/Time/Elapsed.pm
Criterion Covered Total %
branch 32 60 53.3


line true false branch
76 0 1 if $e eq '-compile'
84 2 28 unless defined $sec
86 25 3 unless ref $opt
87 16 12 unless $sec
91 16 12 unless $sec
107 12 0 @rv ? :
115 12 36 unless $e->[1]
116 31 5 $e->[1] > 1 ? :
127 0 12 $weeks ? :
128 0 12 $weeks ? :
129 0 12 $weeks ? :
135 0 48 if ($add)
141 0 48 if ($r->[1] >= $default and $r->[0] ne 'year')
144 0 0 if ($i == 0)
161 0 48 $weeks ? :
162 0 48 $weeks ? :
164 36 12 $xmid ? :
166 36 12 if ($xmid)
180 0 0 $sec >= 60 ? :
0 0 $sec >= 3600 ? :
12 0 $sec >= 86400 ? :
0 12 $sec >= 604800 && $weeks ? :
0 12 $sec >= 2592000 ? :
0 12 $sec >= 31536000 ? :
193 4 24 unless (exists $LCACHE->{$lang})
194 0 4 if ($lang =~ /[^a-z_A-Z_0-9]/msx or $lang =~ / \A [0-9] /msx)
223 0 0 unless -d $test
225 0 0 unless opendir $LDIR, $test
228 0 0 if -d $file
229 0 0 if ($file =~ / \A (.+?) \. pm \z /msx)