Branch Coverage

blib/lib/Mojolicious/Plugin/FormFieldsFromJSON/Date.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
21 3 1 unless $params{$name}
23 1 3 $c->param($name . '-day') ? :
37 4 0 unless $field->{'attributes'}
46 4 0 unless $field->{'attributes'}
56 4 0 unless $field->{'attributes'}
78 4 120 if $_ == $params{'day'}
86 4 0 unless $params{'attrs'}
96 4 44 if $_ == $params{'month'}
104 4 0 unless $params{'attrs'}
120 4 24 if $_ == $params{'year'}
121 4 24 if $_ == $params{'year'}
125 0 4 unless ($has_year)
133 4 0 unless $params{'attrs'}