Condition Coverage

blib/lib/Web/Machine/FSM/States.pm
Criterion Covered Total %
condition 28 35 80.0


and 3 conditions

line !l l&&!r l&&r condition
162 1 2 113 defined $result and "$result" eq '1'
308 88 10 4 $resource->default_charset and not $request->header('Accept-Charset')
361 0 77 17 defined $resource->charsets_provided and scalar @{$resource->charsets_provided;} > 1
392 28 2 6 $request->header('If-Match') && _unquote_header($request->header('If-Match')) eq '*'
416 0 3 3 defined $resource->last_modified && $resource->last_modified->epoch > $$metadata{'If-Unmodified-Since'}->epoch
485 1 9 3 $etag && grep({$etag eq $_;} @etags)
535 0 1 0 defined $resource->last_modified && $resource->last_modified->epoch > $$metadata{'If-Modified-Since'}->epoch

or 2 conditions

line l !l condition
71 7 5 $request->header('Content-Type') || 'application/octet-stream'

or 3 conditions

line l !l&&r !l&&!r condition
456 3 3 3 $request->method eq 'GET' || $request->method eq 'HEAD'
582 2 3 0 $resource->base_uri || $request->base
586 0 0 5 $uri =~ m[^/] or $base_uri =~ m[/$]
672 35 1 4 $request->method eq 'GET' or $request->method eq 'HEAD'