File: good.t

package info (click to toggle)
libtest-memory-cycle-perl 1.06-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 420; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 261 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
#!perl -T

use strict;
use warnings FATAL => 'all';

use Test::Builder::Tester tests => 2;
use Test::More;
use lib 't';
use Foo;

BEGIN {
    use_ok( 'Test::Memory::Cycle' );
}

GOOD: {
    my $cgi = new Foo;

    memory_cycle_ok( $cgi, "Foo doesn't leak" );
}