Branch Coverage

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


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