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 | 455 | use strict; | |||
1 | 2 | ||||||
1 | 33 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 6 | ||||||
1 | 38 | ||||||
4 | |||||||
5 | our $VERSION = '0.000156'; | ||||||
6 | |||||||
7 | 1 | 1 | 6 | use Test2::Util::Grabber; | |||
1 | 3 | ||||||
1 | 24 | ||||||
8 | 1 | 1 | 5 | use Test2::EventFacet::Trace(); | |||
1 | 3 | ||||||
1 | 46 | ||||||
9 | |||||||
10 | our @EXPORT = qw/grab/; | ||||||
11 | 1 | 1 | 16 | use base 'Exporter'; | |||
1 | 3 | ||||||
1 | 155 | ||||||
12 | |||||||
13 | 1 | 1 | 1 | 26 | sub grab { Test2::Util::Grabber->new(trace => Test2::EventFacet::Trace->new(frame => [caller(0)]) ) } | ||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |