| 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
| |||||||||||
| 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__ | ||||||||||