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 28 $XML::Grammar::Fiction::FromProto::Node::WithContent::VERSION = '0.32.0';
3 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 28 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 28 ▶use MooX 'late';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 28 extends("XML::Grammar::Fiction::FromProto::Node");
10  
11 28 has 'children' => (
12 isa => 'XML::Grammar::Fiction::FromProto::Node::List',
13 is => 'rw'
14 );
15  
16 sub _get_childs
17 1514 ▶{
Subroutine _get_childs: called CC=2 SCAR=7.1
18 1514 my $self = shift;
19  
20 1514 my $childs = $self->children->contents();
21  
22 1514 ▶ return $childs || [];
Condition50%1/2
$childs || []
l!l
15140
MC/DC0%0/1
$childs || []
$childs
Truth table50%1/2
A
A= $childs
Aresult
11
00
23 }
24  
25 sub _first
26 61 ▶{
Subroutine _first: called CC=1 SCAR=0.0
27 61 my ($self) = @_;
28  
29 61 return $self->_get_childs()->[0];
30 }
31  
32 28 1;
33  
34 __END__
« blib/lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/Base.pm »