line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TAP::DOM::Entry; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:SCHWIGON'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Accessors for TAP::DOM line entries |
4
|
|
|
|
|
|
|
$TAP::DOM::Entry::VERSION = '0.95'; |
5
|
19
|
|
|
19
|
|
252
|
use 5.006; |
|
19
|
|
|
|
|
47
|
|
6
|
19
|
|
|
19
|
|
77
|
use strict; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
295
|
|
7
|
19
|
|
|
19
|
|
66
|
use warnings; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
956
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require TAP::DOM; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use Class::XSAccessor |
12
|
19
|
|
|
|
|
117
|
chained => 1, |
13
|
|
|
|
|
|
|
constructor => 'new', |
14
|
|
|
|
|
|
|
accessors => [qw( raw |
15
|
|
|
|
|
|
|
type |
16
|
|
|
|
|
|
|
data |
17
|
|
|
|
|
|
|
number |
18
|
|
|
|
|
|
|
severity |
19
|
|
|
|
|
|
|
as_string |
20
|
|
|
|
|
|
|
directive |
21
|
|
|
|
|
|
|
description |
22
|
|
|
|
|
|
|
explanation |
23
|
|
|
|
|
|
|
_children |
24
|
19
|
|
|
19
|
|
7067
|
)]; |
|
19
|
|
|
|
|
36462
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
BEGIN { |
27
|
19
|
|
|
19
|
|
9876
|
no strict 'refs'; |
|
19
|
|
|
|
|
34
|
|
|
19
|
|
|
|
|
1870
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# bitset aware 'is_/has_' accessors |
30
|
19
|
|
|
19
|
|
91
|
for my $method (qw( is_plan |
31
|
|
|
|
|
|
|
is_ok |
32
|
|
|
|
|
|
|
is_test |
33
|
|
|
|
|
|
|
is_comment |
34
|
|
|
|
|
|
|
is_unknown |
35
|
|
|
|
|
|
|
is_actual_ok |
36
|
|
|
|
|
|
|
is_version |
37
|
|
|
|
|
|
|
is_pragma |
38
|
|
|
|
|
|
|
is_unplanned |
39
|
|
|
|
|
|
|
is_bailout |
40
|
|
|
|
|
|
|
is_yaml |
41
|
|
|
|
|
|
|
has_skip |
42
|
|
|
|
|
|
|
has_todo |
43
|
|
|
|
|
|
|
)) |
44
|
|
|
|
|
|
|
{ |
45
|
247
|
|
|
|
|
1289
|
*{$method} = sub { |
46
|
164
|
|
|
164
|
|
17621
|
my ($self) = @_; |
47
|
164
|
100
|
|
|
|
659
|
defined $self->{is_has} ? $self->{is_has} & ${"TAP::DOM::".uc($method)} : $self->{$method} |
|
1
|
|
|
|
|
7
|
|
48
|
|
|
|
|
|
|
} |
49
|
247
|
|
|
|
|
583
|
} |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |