Condition Coverage

blib/lib/Config/Model/Role/Grab.pm
Criterion Covered Total %
condition 46 50 92.0


and 3 conditions

line !l l&&!r l&&r condition
103 3604 1275 706 $mode eq "step_by_step" and @saved > @command
162 2576 263 10 defined $arg and $arg =~ /^"/u
2839 0 10 defined $arg and $arg =~ /^"/u and $arg =~ /"$/u
225 2368 244 28 defined $action and $autoadd == 0
2612 17 11 defined $action and $autoadd == 0 and not $next_obj->exists($arg)
238 2368 254 7 defined $action and not $next_obj->isa("Config::Model::AnyId")
258 0 57 12 @found and not &any(sub {
283 371 0 4 $args{'mode'} and $args{'mode'} eq "loose"
371 2 2 $args{'mode'} and $args{'mode'} eq "loose" and not defined $obj
318 3 3 3 $self->get_type eq "node" and $self->config_class_name eq $class
336 5 9 4 $obj->isa("Config::Model::Node") and $obj->has_element("name", $search, "type", $type)

or 2 conditions

line l !l condition
316 9 0 shift() || die('grab_ancestor: missing ancestor class')

or 3 conditions

line l !l&&r !l&&!r condition
45 860 2386 49 delete $args{'steps'} // delete $args{'step'}
62 1275 2019 1 ref $steps eq "ARRAY" or not ref $steps
150 2606 243 3 $obj->isa("Config::Model::Node") or $obj->isa("Config::Model::WarpedNode")
192 606 2034 3 $grab_non_available or $obj->is_element_available("name", $name)
285 371 1 1 $obj->isa("Config::Model::Value") or $obj->isa("Config::Model::CheckList")