| blib/lib/DBIx/Mint/ResultSet/Iterator.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 5 | 5 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 |
| pod | 0 | 1 | 0.0 |
| total | 7 | 8 | 87.5 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package DBIx::Mint::ResultSet::Iterator; | ||||||
| 2 | |||||||
| 3 | 15 | 15 | 51 | use Moo; | |||
| 15 | 16 | ||||||
| 15 | 82 | ||||||
| 4 | |||||||
| 5 | has closure => ( is => 'ro', required => 1 ); | ||||||
| 6 | |||||||
| 7 | sub next { | ||||||
| 8 | 22 | 22 | 0 | 4320 | my $self = shift; | ||
| 9 | 22 | 49 | return $self->closure->(); | ||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | 1; |