Condition Coverage

blib/lib/CXC/Form/Tiny/Plugin/OptArgs2/Meta.pm
Criterion Covered Total %
condition 18 33 54.5


and 3 conditions

line !l l&&!r l&&r condition
305 66 0 2 $optargs->{'show_default'} and $def->has_default
356 0 0 14 defined $field and $field->isa("Form::Tiny::FieldDefinition")
0 0 14 defined $field and $field->isa("Form::Tiny::FieldDefinition") and $field->has_type

or 2 conditions

line l !l condition
238 0 13 $addons->{'optargs'} // {}
331 33 0 $field->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} //= {}
332 0 33 $stash->{'optargs'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
200 45 0 42 $package eq $self->package || $self->inherit_optargs && (!defined($self->inherit_optargs_match) || _match_inherit_optargs($self->inherit_optargs_match, $package))
221 4 19 68 XXX or my $is_subform = $def->is_subform
233 19 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak("no addons for field " . $def->name)
261 68 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak("no addons for field " . $def->name)
294 11 57 0 $optargs->{'name'} // join("_", @$opt_path, $field_name)
336 0 1 30 $spec->{'required'} //= !!$field->required