Condition Coverage

blib/lib/Mojolicious/Plugin/FormFields.pm
Criterion Covered Total %
condition 38 62 61.2


and 3 conditions

line !l l&&!r l&&r condition
122 0 0 10 not exists $options{'checked'} and defined $value
0 6 4 not exists $options{'checked'} and defined $value and $value eq $options{'value'}
205 2 0 0 $size and $size =~ /^(\d+)[xX](\d+)$/
373 20 1 40 &Scalar::Util::blessed($object) and $object->can($accessor)

or 2 conditions

line l !l condition
18 115 1 shift() || ''
25 33 0 shift() || ''
31 0 14 $$methods{'valid'} // 'valid'
49 0 14 $$methods{'errors'} // 'errors'
52 7 0 $c->stash->{"$ns.errors"} // {}
96 2 3 $value //= 1
387 1 1 $isa || 'type that is not a reference'

or 3 conditions

line l !l&&r !l&&!r condition
19 31 85 0 $c->stash->{$ns}{$name} ||= 'Mojolicious::Plugin::FormFields::Field'->new($c, $name, @_)
26 0 33 0 $c->stash->{$ns}{$name} ||= 'Mojolicious::Plugin::FormFields::ScopedField'->new($c, $name, @_)
107 2 1 0 $options{'id'} //= _dom_id($$self{'name'})
117 6 22 0 $options{'id'} //= _dom_id($$self{'name'})
118 10 18 0 $options{'value'} //= $value
121 5 5 18 $type eq 'checkbox' or $type eq 'radio'
140 1 4 0 $options{'id'} //= _dom_id($$self{'name'}, $value)
151 0 7 0 $attr{'id'} //= _dom_id($$self{'name'})
173 1 3 0 $options{'id'} //= _dom_id($$self{'name'})
185 4 3 0 $text //= _default_label($$self{'name'})
188 0 7 0 $options{'for'} //= _dom_id($$self{'name'})
202 0 2 0 $options{'id'} //= _dom_id($$self{'name'})