| 1 | 19 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 19 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Test::Deep::ArrayLength 1.205; | ||||||||||
| 5 | |||||||||||
| 6 | 19 | ▶ | use Test::Deep::Ref; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | sub init | ||||||||||
| 9 | 179 | ▶ | { | ||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 10 | 179 | my $self = shift; | |||||||||
| 11 | |||||||||||
| 12 | 179 | my $val = shift; | |||||||||
| 13 | |||||||||||
| 14 | 179 | $self->{val} = $val; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub descend | ||||||||||
| 18 | 179 | ▶ | { | ||||||||
|
Subroutine
descend: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | 179 | my $self = shift; | |||||||||
| 20 | 179 | my $got = shift; | |||||||||
| 21 | |||||||||||
| 22 | 179 | my $exp = $self->{val}; | |||||||||
| 23 | |||||||||||
| 24 | 179 | ▶ | return 0 unless $self->test_reftype($got, "ARRAY"); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | |||||||||||
| 26 | 140 | return Test::Deep::descend($got, Test::Deep::arraylengthonly($exp)); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 19 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||