TPath/Selector/Previous.pm

filter: Statementstmt 66.6% 6 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod n/a totaltotal 61.5% 8 / 13 CC 1 SCAR 4.1
CC
1
Cov
67%
select
2.0
to_string
2.0
BEGIN
1.0
CRAP 1.5
« parsing-tester.pl ↑ Summary TPath/Selector/Test/Root.pm »
1 package TPath::Selector::Previous;
2 $TPath::Selector::Previous::VERSION = '1.007';
3 # ABSTRACT: C<TPath::Selector> that implements C<:p>
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 with 'TPath::Selector::Test';
10  
11 # required by TPath::Selector
12 0 ▶sub select {
Subroutine select: not called CC=1 SCAR=6.9
13 0 my ( $self, $ctx ) = @_;
14 0 $ctx->previous;
15 }
16  
17 0 ▶sub to_string { return '/:p' }
Subroutine to_string: not called CC=1 SCAR=6.9
18  
19 __PACKAGE__->meta->make_immutable;
20  
21 1;
22  
23 __END__
« parsing-tester.pl ↑ Summary TPath/Selector/Test/Root.pm »