| blib/lib/GeoIP2/Role/HasIPAddress.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::HasIPAddress; | ||||||
| 2 | |||||||
| 3 | 12 | 12 | 4819 | use strict; | |||
| 12 | 25 | ||||||
| 12 | 282 | ||||||
| 4 | 12 | 12 | 51 | use warnings; | |||
| 12 | 20 | ||||||
| 12 | 406 | ||||||
| 5 | |||||||
| 6 | our $VERSION = '2.006002'; | ||||||
| 7 | |||||||
| 8 | 12 | 12 | 53 | use Moo::Role; | |||
| 12 | 22 | ||||||
| 12 | 61 | ||||||
| 9 | |||||||
| 10 | 12 | 12 | 3281 | use GeoIP2::Types qw( IPAddress ); | |||
| 12 | 30 | ||||||
| 12 | 512 | ||||||
| 11 | |||||||
| 12 | 12 | 12 | 69 | use namespace::clean; | |||
| 12 | 25 | ||||||
| 12 | 60 | ||||||
| 13 | |||||||
| 14 | has ip_address => ( | ||||||
| 15 | is => 'ro', | ||||||
| 16 | isa => IPAddress, | ||||||
| 17 | required => 1, | ||||||
| 18 | ); | ||||||
| 19 | |||||||
| 20 | 1; |