Branch Coverage

lib/Cron/Toolkit/Pattern.pm
Criterion Covered Total %
branch 47 60 78.3


line true false branch
12 663 38 if defined $args{'value'}
28 13 102 scalar @{$self->{'children'};} ? :
33 0 0 if defined $value
39 0 2044371 if defined $value
45 0 1912797 if defined $value
53 0 543 if $self->field_type eq "dom"
57 0 2778 if $self->field_type eq "dom"
58 543 2235 if $self->match($v)
66 0 543 if $self->field_type eq "dom"
70 0 22047 if $self->field_type eq "dom"
71 543 21504 if $self->match($v)
78 20 70 $self->field_type =~ /^(dow|dom)$/ ? :
79 0 0 if $self->type eq "single" and $self->value != 1 and $self->field_type ne "year"
86 0 136 unless defined $value
87 28 108 if $self->field_type eq "dom"
88 29 79 if $self->field_type eq "month"
89 24 55 if $self->field_type eq "dow"
100 159 489 if ($type eq "wildcard")
101 82 407 if ($type eq "unspecified")
102 347 60 if ($type eq "single")
103 10 50 if ($type eq "last")
104 1 49 if ($type eq "lastW")
105 3 46 if ($type eq "nearest_weekday")
106 9 37 if ($type eq "nth")
109 0 37 unless @children
113 19 18 if ($type eq "range")
117 9 9 if ($type eq "step")
124 9 0 if ($type eq "list")
127 9 18 $i == $#children ? :
128 9 18 $i == $#children ? :