Condition Coverage

blib/lib/Respite/Common.pm
Criterion Covered Total %
condition 7 35 20.0


and 3 conditions

line !l l&&!r l&&r condition
40 0 0 0 defined $config::config && 'HASH' eq ref $config::config && $config::config
56 0 0 0 ref $$c{"${name}_service"} && exists $$c{"${name}_service"}{$key}
0 0 0 ref $c->{$name} && exists $c->{$name}{$key}

or 2 conditions

line l !l condition
29 3 0 eval { do { require JSON; 'JSON'->new->utf8->allow_unknown->allow_nonref->convert_blessed->canonical } } || die("Could not load JSON: $@")
31 0 0 eval { do { require JSON; 'JSON'->new->utf8->allow_unknown->allow_nonref->convert_blessed->canonical->pretty } } || die("Could not load JSON: $@")
43 0 0 $@ || 'missing config::config hash'
50 0 0 $self->base_class || ref $self || $self || ''

or 3 conditions

line l !l&&r !l&&!r condition
29 12 3 0 $js ||= eval { do { require JSON; 'JSON'->new->utf8->allow_unknown->allow_nonref->convert_blessed->canonical } } || die("Could not load JSON: $@")
31 0 0 0 $jp ||= eval { do { require JSON; 'JSON'->new->utf8->allow_unknown->allow_nonref->convert_blessed->canonical->pretty } } || die("Could not load JSON: $@")
35 140 3 0 $config ||= do { my $c = undef; eval { do { require config; eval { do { $c = "config"->load } }; $c ||= defined $config::config && 'HASH' eq ref $config::config && $config::config; $c ||= %config::config ? \%config::config : undef } }; $c = {"failed_load", $@ || 'missing config::config hash'} unless "HASH" eq ref $c; $c }
40 3 0 0 $c ||= defined $config::config && 'HASH' eq ref $config::config && $config::config
41 3 0 0 $c ||= %config::config ? \%config::config : undef
50 0 0 0 $name ||= (my $n = $self->base_class || ref $self || $self || '') =~ /(\w+)$/ ? lc $1 : ""