| 1 | 25 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 25 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Test::Deep::RefType 1.205; | ||
| 5 | |||
| 6 | 25 | ▶ | use Test::Deep::Cmp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 25 | ▶ | use Scalar::Util qw( reftype ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | sub init | ||
| 11 | 247 | ▶ | { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 247 | my $self = shift; | |
| 13 | |||
| 14 | 247 | $self->{val} = shift; | |
| 15 | } | ||
| 16 | |||
| 17 | sub descend | ||
| 18 | 247 | ▶ | { |
|
Subroutine
descend: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | 247 | my $self = shift; | |
| 20 | |||
| 21 | 247 | my $got = shift; | |
| 22 | |||
| 23 | 247 | my $exp = $self->{val}; | |
| 24 | 247 | my $reftype = reftype($got); | |
| 25 | |||
| 26 | 247 | return Test::Deep::descend($reftype, Test::Deep::shallow($exp)); | |
| 27 | } | ||
| 28 | |||
| 29 | sub render_stack | ||
| 30 | 9 | ▶ | { |
|
Subroutine
render_stack: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | 9 | my $self = shift; | |
| 32 | 9 | my $var = shift; | |
| 33 | |||
| 34 | 9 | return "reftype($var)"; | |
| 35 | } | ||
| 36 | |||
| 37 | sub renderGot | ||
| 38 | 0 | ▶ | { |
|
Subroutine
renderGot: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 39 | 0 | my $self = shift; | |
| 40 | |||
| 41 | 0 | my $got = shift; | |
| 42 | |||
| 43 | 0 | $self->SUPER::renderGot(reftype($got)); | |
| 44 | } | ||
| 45 | |||
| 46 | 25 | 1; | |
| 47 | |||
| 48 | __END__ | ||