Branch Coverage

blib/lib/Minion/Util.pm
Criterion Covered Total %
branch 50 50 100.0


line true false branch
54 6 7 if not defined $limit or $count < $limit
62 2 15 ref $cron ? :
71 5 95 unless ($parsed->[3]{'set'}{$mon})
76 1 4 defined $next ? :
81 66 29 unless (_day_match($parsed, $mday, $wday))
87 8 21 unless ($parsed->[1]{'set'}{$hour})
89 4 4 defined $next ? :
95 4 17 unless ($parsed->[0]{'set'}{$min})
97 3 1 defined $next ? :
113 11 48 if ($expr =~ /^@/u)
114 1 10 unless exists $NICKNAMES{$expr}
119 2 56 unless @fields == 5
126 17 12 if $parsed->[2]{'is_star'} and $parsed->[4]{'is_star'}
127 12 66 if $parsed->[2]{'is_star'}
128 60 6 if $parsed->[4]{'is_star'}
134 8 13 if $v >= $after
141 139 115 $field eq '*' ? :
146 1 257 unless $step =~ /^[1-9]\d*$/u
149 143 114 if ($range eq '*') { }
8 106 elsif ($range =~ /^(\w+)-(\w+)$/u) { }
105 1 elsif ($range =~ /^(\w+)$/u) { }
153 5 248 if $a < $min or $b > $max or $a > $b
159 39 7 if $name eq "day-of-week" and delete $set{'7'}
166 109 12 if $value =~ /^\d+$/u
167 2 10 unless $names and exists $$names{lc $value}