| Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/Test2/Event/Skip.pm |
| Statements | Executed 10 statements in 189µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 10µs | 11µs | Test2::Event::Skip::BEGIN@2 |
| 1 | 1 | 1 | 7µs | 7µs | Test2::Event::Skip::BEGIN@8 |
| 1 | 1 | 1 | 3µs | 45µs | Test2::Event::Skip::BEGIN@9 |
| 1 | 1 | 1 | 3µs | 20µs | Test2::Event::Skip::BEGIN@3 |
| 0 | 0 | 0 | 0s | 0s | Test2::Event::Skip::causes_fail |
| 0 | 0 | 0 | 0s | 0s | Test2::Event::Skip::extra_amnesty |
| 0 | 0 | 0 | 0s | 0s | Test2::Event::Skip::init |
| 0 | 0 | 0 | 0s | 0s | Test2::Event::Skip::summary |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Test2::Event::Skip; | ||||
| 2 | 2 | 17µs | 2 | 13µs | # spent 11µs (10+2) within Test2::Event::Skip::BEGIN@2 which was called:
# once (10µs+2µs) by Test2::API::BEGIN@99 at line 2 # spent 11µs making 1 call to Test2::Event::Skip::BEGIN@2
# spent 2µs making 1 call to strict::import |
| 3 | 2 | 33µs | 2 | 36µs | # spent 20µs (3+16) within Test2::Event::Skip::BEGIN@3 which was called:
# once (3µs+16µs) by Test2::API::BEGIN@99 at line 3 # spent 20µs making 1 call to Test2::Event::Skip::BEGIN@3
# spent 16µs making 1 call to warnings::import |
| 4 | |||||
| 5 | 1 | 200ns | our $VERSION = '1.302198'; | ||
| 6 | |||||
| 7 | |||||
| 8 | 2 | 21µs | 1 | 7µs | # spent 7µs within Test2::Event::Skip::BEGIN@8 which was called:
# once (7µs+0s) by Test2::API::BEGIN@99 at line 8 # spent 7µs making 1 call to Test2::Event::Skip::BEGIN@8 |
| 9 | 2 | 116µs | 2 | 87µs | # spent 45µs (3+42) within Test2::Event::Skip::BEGIN@9 which was called:
# once (3µs+42µs) by Test2::API::BEGIN@99 at line 9 # spent 45µs making 1 call to Test2::Event::Skip::BEGIN@9
# spent 42µs making 1 call to Test2::Util::HashBase::import |
| 10 | |||||
| 11 | sub init { | ||||
| 12 | my $self = shift; | ||||
| 13 | $self->SUPER::init; | ||||
| 14 | $self->{+EFFECTIVE_PASS} = 1; | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | sub causes_fail { 0 } | ||||
| 18 | |||||
| 19 | sub summary { | ||||
| 20 | my $self = shift; | ||||
| 21 | my $out = $self->SUPER::summary(@_); | ||||
| 22 | |||||
| 23 | if (my $reason = $self->reason) { | ||||
| 24 | $out .= " (SKIP: $reason)"; | ||||
| 25 | } | ||||
| 26 | else { | ||||
| 27 | $out .= " (SKIP)"; | ||||
| 28 | } | ||||
| 29 | |||||
| 30 | return $out; | ||||
| 31 | } | ||||
| 32 | |||||
| 33 | sub extra_amnesty { | ||||
| 34 | my $self = shift; | ||||
| 35 | |||||
| 36 | my @out; | ||||
| 37 | |||||
| 38 | push @out => { | ||||
| 39 | tag => 'TODO', | ||||
| 40 | details => $self->{+TODO}, | ||||
| 41 | } if defined $self->{+TODO}; | ||||
| 42 | |||||
| 43 | push @out => { | ||||
| 44 | tag => 'skip', | ||||
| 45 | details => $self->{+REASON}, | ||||
| 46 | inherited => 0, | ||||
| 47 | }; | ||||
| 48 | |||||
| 49 | return @out; | ||||
| 50 | } | ||||
| 51 | |||||
| 52 | 1 | 2µs | 1; | ||
| 53 | |||||
| 54 | __END__ |