Branch Coverage

blib/lib/Test/JsonAPI/Autodoc/Request.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
19 0 17 unless ($req->isa('HTTP::Request'))
27 14 3 if ($content_type =~ m[^application/json])
33 11 6 if ($req->uri->scheme and $req->uri->authority)
51 14 3 if ($is_json) { }
71 22 2 if (ref $request_parameters eq 'HASH') { }
77 2 42 if ($param_dscr and not $indent)
81 2 42 if (not defined $value) { }
19 23 elsif ($value =~ /^\d+$/) { }
5 18 elsif (ref $value eq 'HASH') { }
1 17 elsif (ref $value eq 'ARRAY') { }
86 18 1 if (($value ^ $value) eq '0') { }
108 1 5 if ($value =~ /^\d/) { }
3 2 elsif (ref $value eq 'HASH') { }
1 1 elsif (ref $value eq 'ARRAY') { }