| blib/lib/WWW/VastAI/HTTPRequest.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 4 | 4 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 7 | 7 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WWW::VastAI::HTTPRequest; | ||||||
| 2 | our $VERSION = '0.001'; | ||||||
| 3 | # ABSTRACT: Internal HTTP request value object for pluggable IO backends | ||||||
| 4 | |||||||
| 5 | 11 | 11 | 102641 | use Moo; | |||
| 11 | 6973 | ||||||
| 11 | 115 | ||||||
| 6 | |||||||
| 7 | has method => ( is => 'ro', required => 1 ); | ||||||
| 8 | has url => ( is => 'ro', required => 1 ); | ||||||
| 9 | has headers => ( is => 'ro', default => sub { {} } ); | ||||||
| 10 | has content => ( is => 'ro' ); | ||||||
| 11 | |||||||
| 12 | 49 | 49 | 1 | 270630 | sub has_content { defined shift->content } | ||
| 13 | |||||||
| 14 | 1; | ||||||
| 15 | |||||||
| 16 | __END__ |