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 3632 1275 706 $mode eq "step_by_step" and @saved > @command
162 2584 283 10 defined $arg and $arg =~ /^"/u
2867 0 10 defined $arg and $arg =~ /^"/u and $arg =~ /"$/u
225 2376 264 28 defined $action and $autoadd == 0
2640 17 11 defined $action and $autoadd == 0 and not $next_obj->exists($arg)
238 2376 274 7 defined $action and not $next_obj->isa("Config::Model::AnyId")
258 0 57 12 @found and not &any(sub {
283 391 0 4 $args{'mode'} and $args{'mode'} eq "loose"
391 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 880 2386 49 delete $args{'steps'} // delete $args{'step'}
62 1275 2039 1 ref $steps eq "ARRAY" or not ref $steps
150 2634 243 3 $obj->isa("Config::Model::Node") or $obj->isa("Config::Model::WarpedNode")
192 606 2062 3 $grab_non_available or $obj->is_element_available("name", $name)
285 391 1 1 $obj->isa("Config::Model::Value") or $obj->isa("Config::Model::CheckList")