inc/Test2/Event/Diag.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 14 | 78.5 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 4 | 7 | 57.1 |
pod | 2 | 3 | 66.6 |
total | 17 | 26 | 65.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #line 1 | ||||||
2 | 1 | 1 | 4 | package Test2::Event::Diag; | |||
1 | 2 | ||||||
1 | 20 | ||||||
3 | 1 | 1 | 4 | use strict; | |||
1 | 1 | ||||||
1 | 36 | ||||||
4 | use warnings; | ||||||
5 | |||||||
6 | our $VERSION = '1.302073'; | ||||||
7 | |||||||
8 | 1 | 1 | 10 | ||||
1 | 33 | ||||||
9 | 1 | 1 | 3 | BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } | |||
1 | 2 | ||||||
1 | 4 | ||||||
10 | use Test2::Util::HashBase qw/message/; | ||||||
11 | |||||||
12 | 0 | 0 | 0 | 0 | sub init { | ||
13 | $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE}; | ||||||
14 | } | ||||||
15 | 0 | 0 | 1 | ||||
16 | sub summary { $_[0]->{+MESSAGE} } | ||||||
17 | 0 | 0 | 1 | ||||
18 | sub diagnostics { 1 } | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |