Branch Coverage

lib/Mojolicious/Plugin/BootstrapAlerts.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
30 2 11 unless $c->stash('__NOTIFICATIONS__')
34 12 5 if ($$config{'dismissable'} or not exists $$config{'dismissable'} and $dismissable)
39 6 11 if (ref $message and ref $message eq 'ARRAY')
41 1 5 $$config{'ordered_list'} ? :
46 6 11 if $type eq 'error'
59 2 0 if ($config and $$config{'auto_inject'} and $$config{'before'} || $$config{'after'})
63 0 4 if $format ne 'html'
67 0 4 unless $notifications
73 2 2 unless ($element)
78 0 2 $$config{'before'} ? :