Branch Coverage

blib/lib/Amon2/Plugin/Web/JSON.pm
Criterion Covered Total %
branch 11 12 91.6


line true false branch
17 9 0 unless ($c->can("render_json"))
23 1 18 $conf->{'canonical'} ? :
29 1 1 if (not $c->request->header("X-Requested-With") and $user_agent =~ /android/i and defined $c->req->header("Cookie") and ($c->req->method || 'GET') eq "GET")
40 16 2 if ref $encoding
46 6 12 if (defined(my $status_code_field = $conf->{'status_code_field'}))
47 3 3 if exists $stuff->{$status_code_field}