Branch Coverage

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


line true false branch
19 0 14 unless ($req->isa('HTTP::Request'))
27 11 3 if ($content_type =~ m[^application/json])
33 8 6 if ($req->uri->scheme and $req->uri->authority)
51 11 3 if ($is_json) { }
71 19 2 if (ref $request_parameters eq 'HASH') { }
77 2 36 if ($param_dscr and not $indent)
81 2 36 if (not defined $value) { }
16 20 elsif ($value =~ /^\d+$/) { }
5 15 elsif (ref $value eq 'HASH') { }
1 14 elsif (ref $value eq 'ARRAY') { }
86 15 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') { }