TPath/Selector/Test/AxisWildcard.pm

filter: Statementstmt 57.8% 11 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 55.5% 15 / 27 CC 2 SCAR 9.4
CC
2
Cov
52%
to_string
6.0
BUILD
2.0
BEGIN
1.0
CRAP 2.6
« TPath/Selector/Test/ClosestTag.pm ↑ Summary compilation-tester.pl »
1 package TPath::Selector::Test::AxisWildcard;
2 $TPath::Selector::Test::AxisWildcard::VERSION = '1.007';
3 # ABSTRACT: handles C</ancestor::*> or C</preceding::*> where this is not the first step in the path, or C<ancestor::*>, etc.
4  
5 1 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use TPath::Test::Node::True;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 with 'TPath::Selector::Test';
13  
14 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
15 0 my $self = shift;
16 0 state $nt = TPath::Test::Node::True->new;
17 0 $self->_node_test($nt);
18 }
19  
20 0 ▶sub to_string {
Subroutine to_string: not called CC=2 SCAR=17.9
21 0 my ( $self, $first ) = @_;
22 0 ▶ my $s = $first ? '' : '/';
Branch: 1 branch
BranchTrueFalseTotal
$first ? : 0 0 0
23 0 $s .= $self->axis . '::';
24 0 $s .= '*';
25 0 return $s;
26 }
27  
28 __PACKAGE__->meta->make_immutable;
29  
30 1;
31  
32 __END__
« TPath/Selector/Test/ClosestTag.pm ↑ Summary compilation-tester.pl »