NAME
Test::Memory::Cycle - check for circular memory references
VERSION
Version 0.01
$Header: /home/cvs/test-memory-cycle/Cycle.pm,v 1.2 2003/12/15 05:34:49 andy Exp $
SYNOPSIS
Blah blah blah. Don't want to leave circular memory references because they cause leaks.
use Test::Memory::Cycle;
my $object = new MyObject;
... Do stuff ...
memory_cycle_ok( $object );
Test::Memory::Cycle
relies on Lincoln Stein's Devel::Cycle to do the dirty work. I've just put it in a pretty Test::*
package.
FUNCTIONS
memory_cycle_ok( $object, $msg )
Checks that $object doesn't have any circular memory references.
AUTHOR
Written by Andy Lester, <andy@petdance.com>
.
COPYRIGHT
Copyright 2003, Andy Lester, All Rights Reserved.
You may use, modify, and distribute this package under the same terms as Perl itself.