Branch Coverage

blib/lib/App/Dochazka/REST/Test.pm
Criterion Covered Total %
branch 2 122 1.6


line true false branch
150 0 39 unless $status->ok
166 39 0 unless $status->ok
169 0 0 unless conn_up()
234 0 0 if (ref $test ne 'Plack::Test::MockHTTP')
244 0 0 if ($json)
250 0 0 if ($user eq 'root') { }
0 0 elsif ($user eq 'inactive') { }
0 0 elsif ($user eq 'active') { }
0 0 elsif ($user eq 'demo') { }
264 0 0 $json ? :
267 0 0 if ($code != $res->code)
273 0 0 if ($content)
277 0 0 if (my $location_header = $res->header('Location'))
303 0 0 unless ($status->text =~ /$qr/)
323 0 0 if (ref $test ne 'Plack::Test::MockHTTP')
336 0 0 if (exists $status->{'payload'})
350 0 0 if (exists $status->{'payload'})
384 0 0 if ($status->not_ok)
412 0 0 if ($status->not_ok)
423 0 0 if ($status->not_ok)
483 0 0 if ($status->level eq 'OK' and $status->code eq 'DISPATCH_RECORDS_FOUND') { }
499 0 0 if ($status->level eq 'OK' and $status->code eq 'DISPATCH_RECORDS_FOUND') { }
0 0 elsif ($status->level eq 'NOTICE' and $status->code eq 'DISPATCH_NO_RECORDS_FOUND') { }
517 0 0 unless $status->ok
537 0 0 if ($status->not_ok)
575 0 0 if ($status->not_ok)
613 0 0 if ($status->not_ok)
664 0 0 unless $status->ok
754 0 0 if ($status->not_ok)
762 0 0 if ($status->not_ok)
792 0 0 unless $status->ok
802 0 0 unless $status->ok
812 0 0 unless $status->ok
816 0 0 unless $status->ok
826 0 0 unless $status->ok
837 0 0 unless $status->ok
847 0 0 unless $status->ok
857 0 0 unless $status->ok
881 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
886 0 0 if ($status->level ne 'OK')
920 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
955 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
987 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
1001 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
1014 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
1027 0 0 if ($dis eq 'create') { }
0 0 elsif ($dis eq 'retrieve') { }
0 0 elsif ($dis eq 'delete') { }
1048 0 0 if ($errstr)