Condition Coverage

blib/lib/MooX/Struct.pm
Criterion Covered Total %
condition 41 54 75.9


and 3 conditions

line !l l&&!r l&&r condition
51 34 4 31 @_ == 1 and ref $_[0] eq 'ARRAY'
34 3 1 @_ == 1 and &ArrayLike()->check($_[0])
37 1 0 @_ == 1 and &ArrayLike()->check($_[0]) and not $HashLike->check($_[0])
34 2 2 @_ == 1 and ref $_[0] ne 'HASH'
36 1 1 @_ == 1 and ref $_[0] ne 'HASH' and $HashLike->check($_[0])
371 1 2 0 $self->flags->{'deparse'} and &CodeRef()->check($spec->{'isa'})
420 12 2 24 not $seen_extends and $self->base->can('FIELDS')
436 2 23 2 @_ and $_[0] =~ /^-(.+)$/

or 2 conditions

line l !l condition
121 0 0 $self->TYPE || 'struct'
126 0 0 $self->TYPE || 'struct'
339 1 12 $spec{'default'} ||= sub { 0; }

or 3 conditions

line l !l&&r !l&&!r condition
42 5 2 0 $_cache{$class} ||= &InstanceOf([$class])->plus_constructors(&HashRef() | &ArrayRef(), 'new')
51 31 0 38 @_ == 1 and ref $_[0] eq 'ARRAY' or @_ == 1 and &ArrayLike()->check($_[0]) and not $HashLike->check($_[0])
231 12 1 7 $name eq '-extends' or $name eq '-isa'
328 1 1 0 $spec{'isa'} ||= &ArrayLike()
333 1 1 0 $spec{'isa'} ||= &HashLike()
338 1 14 0 $spec{'isa'} ||= &Num()
343 11 8 0 $ScalarLike ||= (~(&ArrayRef() | &HashRef()))->create_child_type('name', 'ScalarLike')
345 1 18 0 $spec{'isa'} ||= $ScalarLike