blib/lib/GeoIP2/Role/Error/HTTP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package GeoIP2::Role::Error::HTTP; | ||||||
2 | |||||||
3 | 1 | 1 | 486 | use strict; | |||
1 | 2 | ||||||
1 | 33 | ||||||
4 | 1 | 1 | 26 | use warnings; | |||
1 | 2 | ||||||
1 | 54 | ||||||
5 | |||||||
6 | our $VERSION = '2.006002'; | ||||||
7 | |||||||
8 | 1 | 1 | 7 | use Moo::Role; | |||
1 | 1 | ||||||
1 | 6 | ||||||
9 | |||||||
10 | 1 | 1 | 618 | use GeoIP2::Types qw( HTTPStatus Str URIObject ); | |||
1 | 2 | ||||||
1 | 54 | ||||||
11 | |||||||
12 | 1 | 1 | 6 | use namespace::clean; | |||
1 | 2 | ||||||
1 | 4 | ||||||
13 | |||||||
14 | has http_status => ( | ||||||
15 | is => 'ro', | ||||||
16 | isa => HTTPStatus, | ||||||
17 | required => 1, | ||||||
18 | ); | ||||||
19 | |||||||
20 | has uri => ( | ||||||
21 | is => 'ro', | ||||||
22 | isa => URIObject, | ||||||
23 | required => 1, | ||||||
24 | ); | ||||||
25 | |||||||
26 | 1; |