blib/lib/Test2/Tools/Grab.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 23 | 23 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test2::Tools::Grab; | ||||||
2 | 1 | 1 | 422 | use strict; | |||
1 | 3 | ||||||
1 | 28 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 38 | ||||||
4 | |||||||
5 | our $VERSION = '0.000155'; | ||||||
6 | |||||||
7 | 1 | 1 | 5 | use Test2::Util::Grabber; | |||
1 | 3 | ||||||
1 | 21 | ||||||
8 | 1 | 1 | 4 | use Test2::EventFacet::Trace(); | |||
1 | 3 | ||||||
1 | 27 | ||||||
9 | |||||||
10 | our @EXPORT = qw/grab/; | ||||||
11 | 1 | 1 | 6 | use base 'Exporter'; | |||
1 | 1 | ||||||
1 | 150 | ||||||
12 | |||||||
13 | 1 | 1 | 1 | 29 | sub grab { Test2::Util::Grabber->new(trace => Test2::EventFacet::Trace->new(frame => [caller(0)]) ) } | ||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |