| blib/lib/App/UpdateCPANfile/CPANfileSnapshotParser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 13 | 13 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 0 | 1 | 0.0 |
| total | 17 | 18 | 94.4 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package App::UpdateCPANfile::CPANfileSnapshotParser; | ||||||
| 2 | 2 | 2 | 252714 | use strict; | |||
| 2 | 12 | ||||||
| 2 | 74 | ||||||
| 3 | 2 | 2 | 11 | use warnings; | |||
| 2 | 5 | ||||||
| 2 | 71 | ||||||
| 4 | 2 | 2 | 1055 | use Carton::Snapshot; | |||
| 2 | 438066 | ||||||
| 2 | 192 | ||||||
| 5 | |||||||
| 6 | sub scan_deps { | ||||||
| 7 | 17 | 17 | 0 | 6181 | my ($class, $path) = @_; | ||
| 8 | |||||||
| 9 | 17 | 155 | my $snapshot = Carton::Snapshot->new(path => $path); | ||||
| 10 | 17 | 1845 | $snapshot->load; | ||||
| 11 | 17 | 236137 | [ $snapshot->distributions ]; | ||||
| 12 | } | ||||||
| 13 | |||||||
| 14 | 1; |