Condition Coverage

blib/lib/Net/Defensio.pm
Criterion Covered Total %
condition 21 50 42.0


and 3 conditions

line !l l&&!r l&&r condition
81 0 4 0 $port ne '' and $port != 80
133 0 4 0 $response and not $response->is_success

or 2 conditions

line l !l condition
54 0 3 delete $param{'host'} || 'api.defensio.com'
55 0 3 delete $param{'format'} || 'yaml'
56 1 2 delete $param{'service_type'} || 'app'
57 0 3 delete $param{'protocol'} || 'http'
58 0 3 delete $param{'port'} || 80
104 4 0 $$REQUEST_PARAMS{$action}{'required'} || []
105 2 2 $$REQUEST_PARAMS{$action}{'optional'} || []

or 3 conditions

line l !l&&r !l&&!r condition
52 0 3 0 delete $param{'agent'} || $UA
53 0 0 3 delete $param{'api_version'} || $API_VERSION
78 0 4 0 $param{'protocol'} || $$obj{'protocol'}
79 0 4 0 $param{'host'} || $$obj{'host'}
80 0 4 0 $param{'port'} || $$obj{'port'}
86 0 4 0 $param{'service_type'} || $$obj{'service_type'}
87 0 4 0 $param{'api_version'} || $$obj{'api_version'}
88 0 4 0 $param{'api_key'} || $$obj{'api_key'}
89 0 4 0 $param{'format'} || $$obj{'format'}
128 0 4 0 $$param{'service-url'} || $$param{'service_url'} || $obj->service_url('action', $action, %$param)