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