| blib/lib/Kubectl/CLIWrapper/Result.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 6 | 6 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 |
| pod | n/a | ||
| total | 8 | 8 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Kubectl::CLIWrapper::Result { | ||||||
| 2 | 1 | 1 | 7 | use Moo; | |||
| 1 | 2 | ||||||
| 1 | 7 | ||||||
| 3 | 1 | 1 | 922 | use Types::Standard qw/Int Str HashRef Bool/; | |||
| 1 | 74266 | ||||||
| 1 | 12 | ||||||
| 4 | has rc => (is => 'ro', isa => Int, required => 1); | ||||||
| 5 | has output => (is => 'ro', isa => Str); | ||||||
| 6 | has json => (is => 'ro', isa => HashRef); | ||||||
| 7 | |||||||
| 8 | has success => (is => 'ro', isa => Bool, lazy => 1, default => sub { | ||||||
| 9 | my $self = shift; | ||||||
| 10 | $self->rc == 0; | ||||||
| 11 | }); | ||||||
| 12 | } | ||||||
| 13 | 1; |