| blib/lib/PayProp/API/Public/Client/Role/Attribute/Token.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 12 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | n/a | ||
| total | 16 | 16 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package PayProp::API::Public::Client::Role::Attribute::Token; | ||||||
| 2 | |||||||
| 3 | 30 | 30 | 397466 | use strict; | |||
| 30 | 100 | ||||||
| 30 | 1465 | ||||||
| 4 | 30 | 30 | 212 | use warnings; | |||
| 30 | 73 | ||||||
| 30 | 2159 | ||||||
| 5 | |||||||
| 6 | 30 | 30 | 15504 | use Mouse::Role; | |||
| 30 | 55055 | ||||||
| 30 | 154 | ||||||
| 7 | 30 | 30 | 12536 | use Mouse::Util::TypeConstraints; | |||
| 30 | 83 | ||||||
| 30 | 219 | ||||||
| 8 | |||||||
| 9 | |||||||
| 10 | enum TokenType => [qw/ APIkey Bearer Basic /]; | ||||||
| 11 | |||||||
| 12 | has token_type => ( | ||||||
| 13 | is => 'rw', | ||||||
| 14 | isa => 'TokenType', | ||||||
| 15 | default => sub { die 'you must override default token_type value' }, | ||||||
| 16 | ); | ||||||
| 17 | |||||||
| 18 | 1; |