Condition Coverage

blib/lib/Beam/Wire.pm
Criterion Covered Total %
condition 76 111 68.4


and 3 conditions

line !l l&&!r l&&r condition
232 4 0 0 builtin::blessed($container) && $container->isa('Beam::Wire')
35 0 4 ref $container eq "HASH" and not builtin::blessed($container) && $container->isa('Beam::Wire')
265 10 6 156 ref $config_ref eq "HASH" and $self->is_meta($config_ref, 1)
552 15 152 6 @classy and @other
582 0 1 0 $conf_path && $conf_path->is_file
8 0 1 $service_info{'default'} and not $conf_path && $conf_path->is_file
626 0 144 4 $service_info{'class'}->can("DOES") and $service_info{'class'}->DOES("Beam::Service")
654 8 0 1 $$conf{$meta{'method'}} and not $$conf{$meta{'sub'}}
703 25 2 8 ref $service_info{'args'} eq "HASH" and ref $base_config{'args'} eq "HASH"
17 0 10 ref $service_info{'args'} eq "ARRAY" and @{$service_info{'args'};} == 1
17 2 8 ref $service_info{'args'} eq "ARRAY" and @{$service_info{'args'};} == 1 and ref $service_info{'args'}[0] eq "HASH"
2 0 8 ref $service_info{'args'} eq "ARRAY" and @{$service_info{'args'};} == 1 and ref $service_info{'args'}[0] eq "HASH" and ref $base_config{'args'} eq "ARRAY"
2 0 8 ref $service_info{'args'} eq "ARRAY" and @{$service_info{'args'};} == 1 and ref $service_info{'args'}[0] eq "HASH" and ref $base_config{'args'} eq "ARRAY" and @{$base_config{'args'};} == 1
0 7 1 ref $service_info{'args'} eq "ARRAY" and @{$service_info{'args'};} == 1 and ref $service_info{'args'}[0] eq "HASH" and ref $base_config{'args'} eq "ARRAY" and @{$base_config{'args'};} == 1 and ref $base_config{'args'}[0] eq "HASH"
763 3 4 9 exists $args{'file'} and not path($args{'file'})->is_absolute
767 0 4 9 $args{'file'} && path($args{'file'})->is_file
3 9 4 exists $args{'file'} and not $args{'file'} && path($args{'file'})->is_file
12 2 2 exists $args{'file'} and not $args{'file'} && path($args{'file'})->is_file and $fallback
882 154 24 153 $root and scalar @keys eq grep({$meta{$_};} @keys)
1101 96 28 3 $self->file and not path($self->file)->exists
1115 199 3 1 $lifecycle and $lifecycle eq "eager"
1156 0 0 11 builtin::blessed($dir) && $dir->isa('Path::Tiny')
1211 1 0 3 @classy and @other
1227 0 1 0 exists $config{'value'} and exists $config{'class'} || exists $config{'extends'}

or 2 conditions

line l !l condition
565 1 0 $service_info{'default'} // undef
610 6 144 $service_info{'method'} || 'new'
615 1 3 $m->{'return'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
268 139 2 5 not $config{'lifecycle'} or lc $config{'lifecycle'} ne "factory"
573 2 0 0 $meta{$_} // $_
620 2 1 1 !defined($service) || $return eq 'chain'
657 7 1 1 delete $$conf{$meta{'sub'}} || delete $$conf{$meta{'method'}}
761 0 16 0 $args{'dir'} //= $self->dir
1114 4 0 199 $config->{'lifecycle'} || $$config{$meta{'lifecycle'}}
1153 9 5 0 $dirs //= $self->dir
1227 0 0 1 exists $config{'class'} || exists $config{'extends'}
1249 1 0 0 $config{'value'} or $config{'class'}
0 0 0 $config{'value'} or $config{'class'} or $config{'extends'}
0 0 0 $config{'value'} or $config{'class'} or $config{'extends'} or $config{'ref'}