| 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::ScalarRef 1.205; | ||||||||||
| 5 | |||||||||||
| 6 | 6 | ▶ | use Test::Deep::Ref; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | sub init | ||||||||||
| 9 | 21 | ▶ | { | ||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 10 | 21 | my $self = shift; | |||||||||
| 11 | |||||||||||
| 12 | 21 | my $val = shift; | |||||||||
| 13 | |||||||||||
| 14 | 21 | $self->{val} = $val; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub descend | ||||||||||
| 18 | 21 | ▶ | { | ||||||||
|
Subroutine
descend: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 19 | 21 | my $self = shift; | |||||||||
| 20 | |||||||||||
| 21 | 21 | my $got = shift; | |||||||||
| 22 | 21 | my $exp = $self->{val}; | |||||||||
| 23 | |||||||||||
| 24 | 21 | ▶ | return 0 unless $self->test_class($got); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 21 | ▶ | return 0 unless $self->test_reftype($got, Scalar::Util::reftype($exp)); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 20 | return Test::Deep::descend($got, Test::Deep::scalarrefonly($exp)); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 6 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||