| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Test::Deep::HashEach 1.205; | ||
| 5 | |||
| 6 | 1 | ▶ | use Test::Deep::Cmp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | sub init | ||
| 9 | 2 | ▶ | { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 2 | my $self = shift; | |
| 11 | |||
| 12 | 2 | my $val = shift; | |
| 13 | |||
| 14 | 2 | $self->{val} = $val; | |
| 15 | } | ||
| 16 | |||
| 17 | sub descend | ||
| 18 | 2 | ▶ | { |
|
Subroutine
descend: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | 2 | my $self = shift; | |
| 20 | 2 | my $got = shift; | |
| 21 | |||
| 22 | 2 | my %exp; | |
| 23 | |||
| 24 | 2 | @exp{keys %$got} = ($self->{val}) x (keys %$got); | |
| 25 | |||
| 26 | 2 | return Test::Deep::descend($got, \%exp); | |
| 27 | } | ||
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | __END__ | ||