Condition Coverage

blib/lib/Mojolicious/Plugin/Notifications/JSON.pm
Criterion Covered Total %
condition 15 23 65.2


and 3 conditions

line !l l&&!r l&&r condition
29 17 1 4 ref $_->[1] and ref $_->[1] eq 'HASH'
18 0 4 ref $_->[1] and ref $_->[1] eq 'HASH' and $_->[1]{'ok'} || $_->[1]{'cancel'} || $_[1]{'confirm'}

or 2 conditions

line l !l condition
40 1 0 $param->{'confirm_label'} // 'confirm'
49 1 1 $param->{'ok_label'} // 'ok'
57 1 2 $param->{'cancel_label'} // 'cancel'
81 0 10 $json->{$key} //= []

or 3 conditions

line l !l&&r !l&&!r condition
20 0 15 0 $param{'key'} // $self->key
24 2 11 0 not $json or ref $json
29 1 0 0 $_->[1]{'ok'} || $_->[1]{'cancel'} || $_[1]{'confirm'}