| blib/lib/Plack/Middleware/Debug/Notepad.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 7 | 14 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 0 | 0 | unless $self->notepad_file |
| 25 | 2 | 2 | if ($env->{'QUERY_STRING'} =~ /__plack_middleware_debug_notepad__/) { } |
| 26 | 1 | 1 | if ($env->{'REQUEST_METHOD'} eq 'POST') { } |
| 1 | 0 | elsif ($env->{'REQUEST_METHOD'} eq 'GET') { } | |
| 66 | 1 | 0 | if (open my $fh, '<', $self->notepad_file) { } |
| 0 | 0 | elsif (not -e $self->notepad_file) { } | |
| 141 | 1 | 0 | if (open my $fh, '>', $self->notepad_file) { } |