blib/lib/TAP/Parser/Result/YAML.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/TAP/Parser/Result/Version.pm ↑ Summary blib/lib/TAP/Parser/Scheduler/Spinner.pm »
1 package TAP::Parser::Result::YAML;
2  
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 32 ▶use base 'TAP::Parser::Result';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 TAP::Parser::Result::YAML - YAML result token.
11  
12 =head1 VERSION
13  
14 Version 3.52
15  
16 =cut
17  
18 32 our $VERSION = '3.52';
19  
20 =head1 DESCRIPTION
21  
22 This is a subclass of L<TAP::Parser::Result>. A token of this class will be
23 returned if a YAML block is encountered.
24  
25 1..1
26 ok 1 - woo hooo!
27  
28 C<1..1> is the plan. Gotta have a plan.
29  
30 =head1 OVERRIDDEN METHODS
31  
32 Mainly listed here to shut up the pitiful screams of the pod coverage tests.
33 They keep me awake at night.
34  
35 =over 4
36  
37 =item * C<as_string>
38  
39 =item * C<raw>
40  
41 =back
42  
43 =cut
44  
45 ##############################################################################
46  
47 =head2 Instance Methods
48  
49 =head3 C<data>
50  
51 if ( $result->is_yaml ) {
52 print $result->data;
53 }
54  
55 Return the parsed YAML data for this result
56  
57 =cut
58  
59 7 ▶sub data { shift->{data} }
Subroutine data: called CC=1 SCAR=0.0
Pod documented
60  
61 32 1;
« blib/lib/TAP/Parser/Result/Version.pm ↑ Summary blib/lib/TAP/Parser/Scheduler/Spinner.pm »