| Server IP : 104.21.94.62 / Your IP : 216.73.217.55 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /proc/self/root/usr/local/share/perl5/Test/Deep/ |
Upload File : |
use strict;
use warnings;
package Test::Deep::RefType;
use Test::Deep::Cmp;
use Scalar::Util qw( reftype );
sub init
{
my $self = shift;
$self->{val} = shift;
}
sub descend
{
my $self = shift;
my $got = shift;
my $exp = $self->{val};
my $reftype = reftype($got);
return Test::Deep::descend($reftype, Test::Deep::shallow($exp));
}
sub render_stack
{
my $self = shift;
my $var = shift;
return "reftype($var)";
}
sub renderGot
{
my $self = shift;
my $got = shift;
$self->SUPER::renderGot(reftype($got));
}
1;