File Coverage

inc/Test/Deep/Array.pm
Criterion Covered Total %
statement 18 19 94.7
branch 2 4 50.0
condition n/a
subroutine 5 6 83.3
pod 0 3 0.0
total 25 32 78.1


line stmt bran cond sub pod time code
1 2     2   9 #line 1
  2         4  
  2         59  
2 2     2   9 use strict;
  2         4  
  2         55  
3             use warnings;
4              
5             package Test::Deep::Array;
6 2     2   8  
  2         4  
  2         11  
7             use Test::Deep::Ref;
8              
9             sub init
10 4     4 0 7 {
11             my $self = shift;
12 4         7  
13             my $val = shift;
14 4         186  
15             $self->{val} = $val;
16             }
17              
18             sub descend
19 4     4 0 7 {
20 4         9 my $self = shift;
21             my $got = shift;
22 4         7  
23             my $exp = $self->{val};
24 4 50       16  
25             return 0 unless Test::Deep::descend($got, Test::Deep::arraylength(scalar @$exp));
26 4 50       22  
27             return 0 unless $self->test_class($got);
28 4         17  
29             return Test::Deep::descend($got, Test::Deep::arrayelementsonly($exp));
30             }
31              
32             sub reset_arrow
33 0     0 0   {
34             return 0;
35             }
36              
37             1;