TPath/Test/And.pm

filter: Statementstmt 30.0% 3 / 10 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod n/a totaltotal 26.6% 4 / 15 CC 3 SCAR 20.5
CC
3
Cov
25%
test
12.0
to_string
2.0
BEGIN
1.0
CRAP 7.8
« TPath/TypeCheck.pm ↑ Summary TPath/Test/Or.pm »
1 package TPath::Test::And;
2 $TPath::Test::And::VERSION = '1.007';
3 # ABSTRACT: implements logical conjunction of tests
4  
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 with 'TPath::Test::Compound';
10  
11 # required by TPath::Test
12 0 ▶sub test {
Subroutine test: not called CC=3 SCAR=24.8
13 0 my ( $self, $ctx ) = @_;
14 0 for my $t ( @{ $self->tests } ) {
15 0 ▶ return 0 unless $t->test($ctx);
Branch: 1 branch
BranchTrueFalseTotal
unless $t->test($ctx) 0 0 0
16 }
17 0 return 1;
18 }
19  
20 0 ▶sub to_string {
Subroutine to_string: not called CC=1 SCAR=6.9
21 0 my $self = shift;
22 0 return $self->_compound_to_string('&');
23 }
24  
25 __PACKAGE__->meta->make_immutable;
26  
27 1;
28  
29 __END__
« TPath/TypeCheck.pm ↑ Summary TPath/Test/Or.pm »