⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
YAML-LibYAML-0.89-0
/
t
/
View File Name :
dump-int.t
use strict; use warnings; use FindBin '$Bin'; use lib $Bin; use TestYAMLTests tests => 5; #use Devel::Peek (); use B (); my $data = { int => 42 }; my $flags = B::svref_2object(\$data->{int})->FLAGS; my $string = $flags & B::SVp_POK; my $int = $flags & B::SVp_IOK; #diag("Flags=$flags int=$int string=$string"); cmp_ok($string, '==', 0, "Before Dump we don't have a string"); cmp_ok($int, '>=', 0, "Before Dump we have an int"); #Devel::Peek::Dump($data->{int}); # Dump shouldn't modify the original data my $dump = Dump $data; my $flags2 = B::svref_2object(\$data->{int})->FLAGS; $string = $flags2 & B::SVp_POK; $int = $flags2 & B::SVp_IOK; #diag("Flags=$flags 2int=$int string=$string"); cmp_ok($string, '==', 0, "After Dump we still don't have a string"); cmp_ok($int, '>=', 0, "After Dump we still have an int"); cmp_ok($flags2, '==', $flags, "Flags are the same as before ($flags == $flags2)"); #Devel::Peek::Dump($data->{int});