Branch Coverage

lib/Mojolicious/Plugin/UserMessages/Queue.pm
Criterion Covered Total %
branch 11 26 42.3


line true false branch
24 0 0 if $method eq 'DESTROY'
26 0 0 if ($method =~ /^get_(.+)$/i)
30 0 0 if ($method =~ /^has_(.+)_messages$/i)
47 1 2 unless ($c->session->{'__ui_message_queue'})
51 0 3 unless $message
52 0 3 unless $type
71 0 2 unless ($c->session->{'__ui_message_queue'})
79 3 0 if (not $type or $type eq $m->type)
89 2 0 wantarray ? :
103 1 2 unless ($c->session->{'__ui_message_queue'})
108 2 0 unless ($type)
109 2 0 scalar @messages ? :
113 0 0 if $type eq $$m{'type'}