| 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::Blessed;
use Test::Deep::Cmp;
use Scalar::Util qw( blessed );
sub init
{
my $self = shift;
my $val = shift;
$self->{val} = $val;
}
sub descend
{
my $self = shift;
my $got = shift;
my $exp = $self->{val};
my $blessed = blessed($got);
return Test::Deep::descend($blessed, Test::Deep::shallow($exp));
}
sub render_stack
{
my $self = shift;
my $var = shift;
return "blessed($var)"
}
sub renderGot
{
my $self = shift;
my $got = shift;
$self->SUPER::renderGot(blessed($got));
}
1;