Branch Coverage

lib/Net/ISC/DHCPd/OMAPI/Actions.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
106 0 0 if (my $attr = $self->meta->get_attribute($name)) { }
108 0 0 if ($attr->does($ATTR_ROLE) and $self->${\"has_$name";} and $attr->has_action('lookup'))
114 0 0 if ($attr->should_coerce)
118 0 0 if ($self->$name ne $value)
131 0 0 if ($post_check_failed) { }
139 0 0 $post_check_failed ? :
165 0 0 if (grep {/not found/i;} @out)
169 0 0 if (@attr == 0)
173 0 0 unless $attr->does($ATTR_ROLE)
174 0 0 unless $self->${\"has_$name";}
175 0 0 unless $attr->has_action('modify')
181 0 0 unless @cmd = map({$self->_set_cmd($_);} @attr)
187 0 0 $new ? :
0 0 unless @out = $self->_cmd($new ? 'create' : 'update')
189 0 0 if (grep {/not found/;} @out)
194 0 0 $new ? :
219 0 0 if ($success)
243 0 0 if (grep {/not implemented/i;} @out)
247 0 0 if (grep {/not found/i;} @out)
253 0 0 unless $attr->does($ATTR_ROLE)
271 0 0 unless $attr->does('Net::ISC::DHCPd::OMAPI::Meta::Attribute')
272 0 0 unless $attr->has_action('lookup')
273 0 0 unless $self->${\"has_$name";}
289 0 0 $attr->type_constraint->equals('Str') ? :
303 0 0 unless @out = $self->_cmd("new $type")
305 0 0 unless @out = $self->_cmd('close')
307 0 0 @ret == 1 ? :
320 0 0 unless defined $tmp
324 0 0 if ($self->parent->errstr)