Condition Coverage

blib/lib/CGI/Application/Plugin/MessageStack.pm
Criterion Covered Total %
condition 7 65 10.7


and 3 conditions

line !l l&&!r l&&r condition
253 0 0 0 $limiting_params{'-scope'} and $limiting_params{'-classification'}
254 0 0 0 $$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'}
0 0 0 !$$message_hashref{'-scope'} || (ref $$message_hashref{'-scope'} && grep({$_ eq $limiting_params{'-scope'};} @{$$message_hashref{'-scope'};}) || !ref($$message_hashref{'-scope'}) && $$message_hashref{'-scope'} eq $limiting_params{'-scope'}) and ($$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'})
276 0 0 0 $$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'}
326 0 0 0 $limiting_params{'-classification'} and $limiting_params{'-scope'}
328 0 0 0 $$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'}
0 0 0 $$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'} and !$$message_hashref{'-scope'} || (ref $$message_hashref{'-scope'} && grep({$_ eq $limiting_params{'-scope'};} @{$$message_hashref{'-scope'};}) || !ref($$message_hashref{'-scope'}) && $$message_hashref{'-scope'} eq $limiting_params{'-scope'})
333 0 0 0 $$message_hashref{'-classification'} and $$message_hashref{'-classification'} eq $limiting_params{'-classification'}
427 5 0 0 $$limiting_params{'-classification'} and $$limiting_params{'-scope'}
433 0 0 0 $$message_hashref{'-scope'} and $$message_hashref{'-scope'} ne $$limiting_params{'-scope'}
463 0 1 0 $$message_hashref{'-scope'} and $$message_hashref{'-scope'} ne $$limiting_params{'-scope'}

or 2 conditions

line l !l condition
190 0 0 $session->param('__CAP_MessageStack_Stack') || []
424 0 5 $CGI::Application::Plugin::MessageStack::config{'-classification_param_name'} || 'classification'
425 0 5 $CGI::Application::Plugin::MessageStack::config{'-message_param_name'} || 'message'
487 0 5 $CGI::Application::Plugin::MessageStack::config{'-loop_param_name'} || 'CAP_Messages'

or 3 conditions

line l !l&&r !l&&!r condition
191 0 0 0 $limiting_params{'-scope'} or $limiting_params{'-classification'}
246 0 0 0 $limiting_params{'-scope'} or $limiting_params{'-classification'}
254 0 0 0 !$$message_hashref{'-scope'} || (ref $$message_hashref{'-scope'} && grep({$_ eq $limiting_params{'-scope'};} @{$$message_hashref{'-scope'};}) || !ref($$message_hashref{'-scope'}) && $$message_hashref{'-scope'} eq $limiting_params{'-scope'})
322 0 0 0 $limiting_params{'-scope'} or $limiting_params{'-classification'}
328 0 0 0 !$$message_hashref{'-scope'} || (ref $$message_hashref{'-scope'} && grep({$_ eq $limiting_params{'-scope'};} @{$$message_hashref{'-scope'};}) || !ref($$message_hashref{'-scope'}) && $$message_hashref{'-scope'} eq $limiting_params{'-scope'})
429 0 0 0 not $$message_hashref{'-classification'} or $$message_hashref{'-classification'} ne $$limiting_params{'-classification'}
448 0 0 0 not $$message_hashref{'-classification'} or $$message_hashref{'-classification'} ne $$limiting_params{'-classification'}
508 1 0 38 $@ or not $session_object