Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
319 68 0 2 $optargs->{'show_default'} and $def->has_default
370 0 0 16 defined $field and $field->isa("Form::Tiny::FieldDefinition")
0 0 16 defined $field and $field->isa("Form::Tiny::FieldDefinition") and $field->has_type

or 2 conditions

line l !l condition
253 0 13 $addons->{'optargs'} // {}
345 35 0 $field->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} //= {}
346 0 35 $stash->{'optargs'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
214 47 0 42 $package eq $self->package || $self->inherit_optargs && (!defined($self->inherit_optargs_match) || _match_inherit_optargs($self->inherit_optargs_match, $package))
236 4 19 70 Ref::Util::XS::is_plain_hashref($def) or my $is_subform = $def->is_subform
248 19 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak('no addons for field ' . $def->name)
275 70 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak('no addons for field ' . $def->name)
308 11 59 0 $optargs->{'name'} // join($self->nested_path_sep, @$opt_path, $field_name)
350 0 33 0 $spec->{'required'} //= !!$field->required