| 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
| |||||||||||
| 31 | . ( $self->is_inverted ? '^' : '' ) | ||||||||||
| 32 | . $self->_stringify_match( $self->val ); | ||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | __PACKAGE__->meta->make_immutable; | ||||||||||
| 36 | |||||||||||
| 37 | 1; | ||||||||||
| 38 | |||||||||||
| 39 | __END__ | ||||||||||