Condition Coverage

blib/lib/Mojolicious/Plugin/Log/Elasticsearch.pm
Criterion Covered Total %
condition 5 14 35.7


and 3 conditions

line !l l&&!r l&&r condition
98 0 0 0 $tx->res and $tx->res->code
0 0 0 $tx->res and $tx->res->code and not $tx->res->code =~ /^20./

or 2 conditions

line l !l condition
13 2 0 $conf->{'index'} || die('no elasticsearch index provided')
14 2 0 $conf->{'type'} || die('no elasticsearch type provided')
16 2 0 $conf->{'elasticsearch_url'} || die('no elasticsearch url provided')
17 1 1 $conf->{'log_stash_keys'} || []