File: 97_unshare_hek.t

package info (click to toggle)
libcpanel-json-xs-perl 4.39-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,872 kB
  • sloc: perl: 1,165; makefile: 8
file content (9 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
# shared hek destruction. with debugging perls or valgrind only
# https://github.com/rurban/Cpanel-JSON-XS/issues/10
print "1..1\n";
use Cpanel::JSON::XS qw<decode_json>;
my %h = ('{"foo":"bar"}' => 1);
while (my ($k) = each %h) {
    my $obj = decode_json($k);
}
print "ok 1\n";