File: 005_circular_references_check.t

package info (click to toggle)
libyahc-perl 0.035-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 440 kB
  • sloc: perl: 3,661; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env perl

use strict;
use warnings;

use YAHC;
use Test::More;
use Test::Memory::Cycle;

my $conn;
my ($yahc, $yahc_storage) = YAHC->new();

$yahc->request({
    host => 'localhost',
    callback => sub {
        $yahc->request({ host => 'localhost' });
        $conn->{state} = YAHC::State::INITIALIZED();
    }
});

memory_cycle_ok($yahc);
memory_cycle_ok($conn);
done_testing();