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.97'; |
5
|
19
|
|
|
19
|
|
225
|
use 5.006; |
|
19
|
|
|
|
|
40
|
|
6
|
19
|
|
|
19
|
|
64
|
use strict; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
257
|
|
7
|
19
|
|
|
19
|
|
56
|
use warnings; |
|
19
|
|
|
|
|
25
|
|
|
19
|
|
|
|
|
830
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require TAP::DOM; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use Class::XSAccessor |
12
|
19
|
|
|
|
|
106
|
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
|
|
6314
|
)]; |
|
19
|
|
|
|
|
32826
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
BEGIN { |
27
|
19
|
|
|
19
|
|
8657
|
no strict 'refs'; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
1778
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# bitset aware 'is_/has_' accessors |
30
|
19
|
|
|
19
|
|
75
|
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
|
|
|
|
|
1502
|
*{$method} = sub { |
46
|
164
|
|
|
164
|
|
17104
|
my ($self) = @_; |
47
|
164
|
100
|
|
|
|
580
|
defined $self->{is_has} ? $self->{is_has} & ${"TAP::DOM::".uc($method)} : $self->{$method} |
|
1
|
|
|
|
|
70
|
|
48
|
|
|
|
|
|
|
} |
49
|
247
|
|
|
|
|
527
|
} |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |