Condition Coverage

blib/lib/Mojolicious/Plugin/FormFields.pm
Criterion Covered Total %
condition 31 51 60.7


and 3 conditions

line !l l&&!r l&&r condition
90 0 0 4 not exists $options{'checked'} and defined $value
0 2 2 not exists $options{'checked'} and defined $value and $value eq $options{'value'}
172 1 0 0 $size and $size =~ /^(\d+)[xX](\d+)$/
251 14 1 27 &Scalar::Util::blessed($object) and $object->can($accessor)

or 2 conditions

line l !l condition
16 41 1 shift() || ''
63 0 2 $value //= 1
265 1 1 $isa || 'type that is not a reference'

or 3 conditions

line l !l&&r !l&&!r condition
18 5 32 5 $c->stash->{$key} ||= 'Mojolicious::Plugin::FormFields::Field'->new($c, $name, @_)
74 1 1 0 $options{'id'} //= _dom_id($self->{'name'})
84 2 13 0 $options{'id'} //= _dom_id($self->{'name'})
85 4 11 0 $options{'value'} //= $value
88 2 2 11 $type eq 'checkbox' or $type eq 'radio'
107 0 2 0 $options{'id'} //= _dom_id($self->{'name'}, $value)
118 0 2 0 $attr{'id'} //= _dom_id($self->{'name'})
140 0 2 0 $options{'id'} //= _dom_id($self->{'name'})
152 4 2 0 $text //= _default_label($self->{'name'})
155 0 6 0 $options{'for'} //= _dom_id($self->{'name'})
169 0 1 0 $options{'id'} //= _dom_id($self->{'name'})