Branch Coverage

blib/lib/Table/Simple.pm
Criterion Covered Total %
branch 37 50 74.0


line true false branch
191 10 10 if defined $self->columns->Indices($column_name)
209 10 2 if ($self->has_column($column_name)) { }
233 0 8 unless (&blessed($arg) and $arg->isa('Table::Simple::Column'))
267 4 3 unless (defined $self->type)
271 1 6 unless (&blessed($arg))
276 0 6 if (&blessed($arg) ne $self->type)
281 2 4 if ($self->row_count > 0)
288 3 1 if ($self->_is_moose_object($arg)) { }
1 0 elsif (overload::StrVal($arg) =~ /HASH/) { }
316 0 4 unless (&blessed($arg))
329 3 6 if $self->_is_private_attribute($attribute_name)
333 6 0 unless ($self->has_column($attribute_name))
336 6 0 if defined $column
348 1 2 if $self->_is_private_attribute($key)
352 2 0 unless ($self->has_column($key))
355 2 0 if defined $column
380 1 7 unless ($self->has_columns)
384 0 8 if (&blessed($object) ne $self->type)
393 12 4 if ($self->_is_moose_object($object)) { }
400 0 4 ref $$object{$column->name} ? :
403 16 0 if defined $value
413 5 8 if ($attr_name =~ /^_+/) { }
425 18 6 if &blessed($object) and $object->can('meta')
434 0 12 unless ($object->meta->has_attribute($attribute_name))
441 0 12 unless ($mop_attribute->has_read_method)