TPath/Selector/Test/Anywhere.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 88.2% 15 / 17 CC 1 SCAR 1.8
CC
1
Cov
92%
to_string
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« TPath/Test/Node/True.pm ↑ Summary TPath/Expression.pm »
1 package TPath::Selector::Test::Anywhere;
2 $TPath::Selector::Test::Anywhere::VERSION = '1.007';
3 # ABSTRACT: handles C<//*> expression
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 around BUILDARGS => sub {
15 my ( $orig, $class, %args ) = @_;
16 state $nt = TPath::Test::Node::True->new;
17 $class->$orig(
18 %args,
19 first_sensitive => 1,
20 axis => 'descendant',
21 node_test => $nt
22 );
23 };
24  
25 0 ▶sub to_string { '//*' }
Subroutine to_string: not called CC=1 SCAR=6.9
26  
27 __PACKAGE__->meta->make_immutable;
28  
29 1;
30  
31 __END__
« TPath/Test/Node/True.pm ↑ Summary TPath/Expression.pm »