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
319 67 0 2 $optargs->{'show_default'} and $def->has_default
370 0 0 15 defined $field and $field->isa("Form::Tiny::FieldDefinition")
0 0 15 defined $field and $field->isa("Form::Tiny::FieldDefinition") and $field->has_type

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
214 46 0 42 $package eq $self->package || $self->inherit_optargs && (!defined($self->inherit_optargs_match) || _match_inherit_optargs($self->inherit_optargs_match, $package))
235 4 19 69 XXX or my $is_subform = $def->is_subform
247 19 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak("no addons for field " . $def->name)
275 69 0 0 $def->addons->{'CXC::Form::Tiny::Plugin::OptArgs2::Meta'} // croak("no addons for field " . $def->name)
308 11 58 0 $optargs->{'name'} // join($self->nested_path_sep, @$opt_path, $field_name)
350 0 1 31 $spec->{'required'} //= !!$field->required