TPath/Selector/Parent.pm

filter: Statementstmt 71.4% 10 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 54.5% 12 / 22 CC 2 SCAR 11.6
CC
2
Cov
62%
select
6.0
to_string
2.0
BEGIN
1.0
CRAP 3.2
« TPath/Test/Node/Tag.pm ↑ Summary TPath/Attributes/Extended.pm »
1 package TPath::Selector::Parent;
2 1 $TPath::Selector::Parent::VERSION = '1.007';
3 # ABSTRACT: L<TPath::Selector> that implements C<..>
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 1 with 'TPath::Selector';
10  
11 # required by TPath::Selector
12 0 ▶sub select {
Subroutine select: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my ( $self, $ctx ) = @_;
14 0 my ( $n, $i ) = ( $ctx->n, $ctx->i );
15 0 ▶ return $n == $i->root ? () : $i->f->parent( $ctx, $ctx );
Branch: 1 branch
BranchTrueFalseTotal
$n == $i->root ? : 0 0 0
16 }
17 0 ▶sub to_string { '..' }
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
18  
19 1 __PACKAGE__->meta->make_immutable;
20  
21 1 1;
22  
23 __END__
« TPath/Test/Node/Tag.pm ↑ Summary TPath/Attributes/Extended.pm »