Branch Coverage

lib/Mojolicious/Plugin/BootstrapAlerts.pm
Criterion Covered Total %
branch 22 22 100.0


line true false branch
29 3 23 unless $c->stash('__NOTIFICATIONS__')
32 22 8 if ('HASH' ne ref $config)
37 25 5 if ($config->{'dismissable'} or not exists $config->{'dismissable'} and $dismissable)
42 7 23 if (ref $message and ref $message eq 'ARRAY')
44 1 6 $config->{'ordered_list'} ? :
49 17 13 if $type eq 'error'
63 3 9 if ($config->{'auto_inject'} and $selector)
67 1 7 if $format ne 'html'
71 1 6 unless $notifications
76 2 4 unless ($element)
81 2 2 $config->{'before'} ? :