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