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