| blib/lib/MooX/Struct.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 39 | 51 | 76.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 45 | 34 | 3 | 30 | @_ == 1 and ref $_[0] eq 'ARRAY' |
| 34 | 2 | 1 | @_ == 1 and &ArrayLike()->check($_[0]) | |
| 36 | 1 | 0 | @_ == 1 and &ArrayLike()->check($_[0]) and not $HashLike->check($_[0]) | |
| 34 | 1 | 2 | @_ == 1 and ref $_[0] ne 'HASH' | |
| 35 | 1 | 1 | @_ == 1 and ref $_[0] ne 'HASH' and $HashLike->check($_[0]) | |
| 365 | 1 | 2 | 0 | $self->flags->{'deparse'} and &CodeRef()->check($spec->{'isa'}) |
| 414 | 12 | 2 | 24 | not $seen_extends and $self->base->can('FIELDS') |
| 430 | 2 | 23 | 2 | @_ and $_[0] =~ /^-(.+)$/ |
| line | l | !l | condition |
|---|---|---|---|
| 115 | 0 | 0 | $self->TYPE || 'struct' |
| 120 | 0 | 0 | $self->TYPE || 'struct' |
| 333 | 1 | 12 | $spec{'default'} ||= sub { 0; } |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 45 | 30 | 0 | 37 | @_ == 1 and ref $_[0] eq 'ARRAY' or @_ == 1 and &ArrayLike()->check($_[0]) and not $HashLike->check($_[0]) |
| 225 | 12 | 1 | 7 | $name eq '-extends' or $name eq '-isa' |
| 322 | 1 | 1 | 0 | $spec{'isa'} ||= &ArrayLike() |
| 327 | 1 | 1 | 0 | $spec{'isa'} ||= &HashLike() |
| 332 | 1 | 14 | 0 | $spec{'isa'} ||= &Num() |
| 337 | 11 | 8 | 0 | $ScalarLike ||= (~(&ArrayRef() | &HashRef()))->create_child_type('name', 'ScalarLike') |
| 339 | 1 | 18 | 0 | $spec{'isa'} ||= $ScalarLike |