blib/lib/XML/Grammar/Fiction/FromProto/Node/WithContent.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 92.3% 24 / 26 CC 2 SCAR 3.0
CC
2
Cov
95%
_get_childs
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/Base.pm »
1 package XML::Grammar::Fiction::FromProto::Node::WithContent;
2 23 $XML::Grammar::Fiction::FromProto::Node::WithContent::VERSION = '0.22.4';
3 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 23 ▶use MooX 'late';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 23 extends("XML::Grammar::Fiction::FromProto::Node");
10  
11 23 has 'children' => (
12 isa => 'XML::Grammar::Fiction::FromProto::Node::List',
13 is => 'rw'
14 );
15  
16 sub _get_childs
17 {
18 1401 ▶ my $self = shift;
Subroutine _get_childs: called CC=2 SCAR=7.1
19  
20 1401 my $childs = $self->children->contents();
21  
22 1401 ▶ return $childs || [];
Condition50%1/2
$childs || []
l!l
14010
MC/DC0%0/1
$childs || []
$childs
Truth table50%1/2
A
A= $childs
Aresult
11
00
23 }
24  
25 sub _first
26 {
27 57 ▶ my ($self) = @_;
Subroutine _first: called CC=1 SCAR=0.0
28  
29 57 return $self->_get_childs()->[0];
30 }
31  
32 23 1;
33  
34 __END__
35  
36 =pod
37  
38 =encoding UTF-8
39  
40 =head1 NAME
41  
42 XML::Grammar::Fiction::FromProto::Node::WithContent - contains a node
43 with content.
44  
45 =head1 VERSION
46  
47 version 0.22.4
48  
49 =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
50  
51 =head1 SUPPORT
52  
53 =head2 Websites
54  
55 The following websites have more information about this module, and may be of help to you. As always,
56 in addition to those websites please use your favorite search engine to discover more resources.
57  
58 =over 4
59  
60 =item *
61  
62 MetaCPAN
63  
64 A modern, open-source CPAN search engine, useful to view POD in HTML format.
65  
66 L<https://metacpan.org/release/XML-Grammar-Fiction>
67  
68 =item *
69  
70 RT: CPAN's Bug Tracker
71  
72 The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
73  
74 L<https://rt.cpan.org/Public/Dist/Display.html?Name=XML-Grammar-Fiction>
75  
76 =item *
77  
78 CPANTS
79  
80 The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
81  
82 L<http://cpants.cpanauthors.org/dist/XML-Grammar-Fiction>
83  
84 =item *
85  
86 CPAN Testers
87  
88 The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
89  
90 L<http://www.cpantesters.org/distro/X/XML-Grammar-Fiction>
91  
92 =item *
93  
94 CPAN Testers Matrix
95  
96 The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
97  
98 L<http://matrix.cpantesters.org/?dist=XML-Grammar-Fiction>
99  
100 =item *
101  
102 CPAN Testers Dependencies
103  
104 The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
105  
106 L<http://deps.cpantesters.org/?module=XML::Grammar::Fiction>
107  
108 =back
109  
110 =head2 Bugs / Feature Requests
111  
112 Please report any bugs or feature requests by email to C<bug-xml-grammar-fiction at rt.cpan.org>, or through
113 the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=XML-Grammar-Fiction>. You will be automatically notified of any
114 progress on the request by the system.
115  
116 =head2 Source Code
117  
118 The code is open to the world, and available for you to hack on. Please feel free to browse it and play
119 with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
120 from your repository :)
121  
122 L<https://github.com/shlomif/fiction-xml>
123  
124 git clone git://github.com/shlomif/fiction-xml.git
125  
126 =head1 AUTHOR
127  
128 Shlomi Fish <shlomif@cpan.org>
129  
130 =head1 BUGS
131  
132 Please report any bugs or feature requests on the bugtracker website
133 L<https://github.com/shlomif/fiction-xml/issues>
134  
135 When submitting a bug or request, please include a test-file or a
136 patch to an existing test-file that illustrates the bug or desired
137 feature.
138  
139 =head1 COPYRIGHT AND LICENSE
140  
141 This software is Copyright (c) 2007 by Shlomi Fish.
142  
143 This is free software, licensed under:
144  
145 The MIT (X11) License
146  
147 =cut
« blib/lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/Base.pm »