Condition Coverage

blib/lib/Net/Respite/Common.pm
Criterion Covered Total %
condition 15 24 62.5


and 3 conditions

line !l l&&!r l&&r condition
40 2 0 1 defined $config::config && 'HASH' eq ref $config::config && $config::config

or 2 conditions

line l !l condition
29 10 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 1 1 $@ || 'missing config::config hash'

or 3 conditions

line l !l&&r !l&&!r condition
29 17 10 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 174 8 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 4 1 2 $c ||= defined $config::config && 'HASH' eq ref $config::config && $config::config
41 5 1 1 $c ||= %config::config ? \%config::config : undef