Condition Coverage

blib/lib/SweetPea.pm
Criterion Covered Total %
condition 10 81 12.3


and 3 conditions

line !l l&&!r l&&r condition
576 0 0 0 exists $$actions{'/root/_index'} and not $$actions{"$controller"} || $$actions{"$package/_index"}
593 18 0 0 exists $$actions{'/root/_begin'} and not $$actions{"$package/_begin"}
604 0 0 0 exists $$actions{'/root/_end'} and not $$actions{"$package/_end"}
713 0 3 0 $0 and $1
1187 0 0 0 -e $file and $file
1473 0 0 0 lc $type ne 'info' and lc $type ne 'warn'
0 0 0 lc $type ne 'info' and lc $type ne 'warn' and lc $type ne 'error'
0 0 0 lc $type ne 'info' and lc $type ne 'warn' and lc $type ne 'error' and lc $type ne 'success'
0 0 0 $type and not $store
0 0 0 $type and not $store and not $message
0 0 0 lc $type ne 'info' and lc $type ne 'warn' and lc $type ne 'error' and lc $type ne 'success' and ($type and not $store and not $message)
1481 0 0 0 $type and $store
0 0 0 $type and $store and not $message
0 0 0 lc $type eq 'info' || lc $type eq 'warn' || lc $type eq 'error' || lc $type eq 'success' and ($type and $store and not $message)
1491 0 0 0 $message ne '' and $last_message
1882 0 0 54 $name and $init
1976 17 3 0 $url =~ m[/$] and length $url > 1
2026 0 18 0 $name and $type
0 0 18 $name and not $type

or 2 conditions

line l !l condition
359 18 0 $ENV{'HOME'} || ''
525 18 0 $self->_load_path_and_actions || {}
654 0 18 $$self{'store'}{'application'}{'dispatcher'} || '\\.pl'

or 3 conditions

line l !l&&r !l&&!r condition
576 0 0 0 $$actions{"$controller"} || $$actions{"$package/_index"}
1210 0 0 0 $ext eq '.jpg' or $ext eq '.jpeg'
1218 0 0 0 $ext eq '.html' or $ext eq '.htm'
1263 0 0 0 $controller or $path
1481 0 0 0 lc $type eq 'info' || lc $type eq 'warn' || lc $type eq 'error' || lc $type eq 'success'
2020 0 0 0 $type eq 'get' or $type eq 'post'