Condition Coverage

blib/lib/Mojolicious/Plugin/Notifications/Alertify.pm
Criterion Covered Total %
condition 22 29 75.8


and 3 conditions

line !l l&&!r l&&r condition
41 2 0 15 &blessed($_[0]) and $_[0]->isa('Mojolicious::Controller')
70 1 1 3 $param->{'ok'} and $param->{'cancel'}
134 8 1 6 ref $_->[1] and ref $_->[1] eq 'HASH'

or 2 conditions

line l !l condition
24 1 2 $param->{'base_class'} // 'default'
25 0 3 $param->{'base_timeout'} // 5000
60 1 0 $param->{'ok_label'} // 'OK'
61 1 0 $param->{'cancel_label'} // 'Cancel'

or 3 conditions

line l !l&&r !l&&!r condition
53 4 1 12 $param->{'ok'} or $param->{'cancel'}
58 1 0 4 $param->{'ok_label'} or $param->{'cancel_label'}
110 1 7 0 shift @post // $self->base_class
135 2 4 0 $_->[1]{'timeout'} //= $self->base_timeout