Branch Coverage

blib/lib/Shodo/Suzuri.pm
Criterion Covered Total %
branch 10 14 71.4


line true false branch
31 0 4 unless (try sub { $req->isa('HTTP::Request'); } )
38 3 1 if ($req->content_type =~ m[^application/json])
47 0 3 unless (try sub { $res->isa('HTTP::Response'); } )
53 2 1 if ($res->content_type =~ m[^application/json])
74 0 4 unless $$self{'validator'}
76 4 0 if (ref $args[0] and ref $args[0] eq 'HASH') { }
81 2 2 if ($$self{'validator'}->has_errors)