Debian Codegraph @

t/route-pod-coverage/route-pod-coverage.t

raw
1 use strict;
2 use warnings;
3
4 use Test::More;
5
6 use lib '.';
7 use t::lib::TestPod;
8 use Dancer2::Test apps => ['t::lib::TestPod'];
9
10 is_pod_covered 'is pod covered';
11
12 my $pod_structure = {
13 't::lib::TestPod' => {
14 'has_pod' => 1,
15 'routes' => [
16 "post /in_testpod/*",
17 "post /me:id",
18 "get /in_testpod",
19 "get /hello",
20 "get /me:id"
21 ]
22 }
23 };
24
25 is_deeply( route_pod_coverage, $pod_structure, 'my pod looks like expected' );
26
27 done_testing;