File Coverage

File:t/02-check-method-and_path.t
Coverage:100.0%

linestmttimecode
1
1
1
1
8471
4
62
use strict;
2
1
1
1
7
2
61
use warnings;
3
1
1
1
948
1789
12
use lib "t/lib";
4
1
1
1
816
4
54
use TestApp;
5
1
1
1
839
41874
8
use Dancer::Test;
6
1
1
1
8380
2
10
use Test::More tests => 7;
7
8
1
427941
response_content_is [ GET => "/" ] => "homepage";
9
1
534
response_content_is [ GET => "/foo" ] => "foo",
10    "Test string path";
11
1
503
response_content_is [ GET => "/foo/baz" ] => "baz",
12    "Test token path";
13
1
501
response_content_is [ POST => "/bar" ] => "bar",
14    "Test regexp";
15
1
506
response_status_is [ POST => "/baz" ] => 404,
16    "Not found";
17
1
491
response_content_is [GET => "/index.html" ] => "foobar = yes\n";
18
1
531
response_content_is [GET => "/second.html" ] => "foo = yes\n";