TPath/Selector/Test/AnywhereMatch.pm

filter: Statementstmt 64.2% 9 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 57.1% 12 / 21 CC 2 SCAR 10.4
CC
2
Cov
56%
to_string
6.0
BUILD
2.0
BEGIN
1.0
CRAP 2.8
« TPath/Attributes/Extended.pm ↑ Summary TPath/Selector/Test/AnywhereTag.pm »
1 package TPath::Selector::Test::AnywhereMatch;
2 $TPath::Selector::Test::AnywhereMatch::VERSION = '1.007';
3 # ABSTRACT: handles C<//~foo~> expression
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use TPath::Test::Node::Match;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 with 'TPath::Selector::Test::Match';
11  
12 around BUILDARGS => sub {
13 my ( $orig, $class, %args ) = @_;
14 $class->$orig(
15 %args,
16 first_sensitive => 1,
17 axis => 'descendant',
18 );
19 };
20  
21 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
22 0 my $self = shift;
23 0 my $nt = TPath::Test::Node::Match->new( rx => $self->rx );
24 0 $self->_node_test($nt);
25 }
26  
27 0 ▶sub to_string {
Subroutine to_string: not called CC=2 SCAR=17.9
28 0 my $self = shift;
29 return
30 0 ▶ '//'
Branch: 1 branch
BranchTrueFalseTotal
$self->is_inverted ? : 0 0 0
31 . ( $self->is_inverted ? '^' : '' )
32 . $self->_stringify_match( $self->val );
33 }
34  
35 __PACKAGE__->meta->make_immutable;
36  
37 1;
38  
39 __END__
« TPath/Attributes/Extended.pm ↑ Summary TPath/Selector/Test/AnywhereTag.pm »