/[cwmp]/google/trunk/t/80-leaks.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /google/trunk/t/80-leaks.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 220 - (show annotations)
Fri Nov 23 00:42:50 2007 UTC (16 years, 5 months ago) by dpavlin
File MIME type: application/x-troff
File size: 418 byte(s)
 r252@brr:  dpavlin | 2007-11-23 01:42:20 +0100
 optional memory leak detector based on Devel::Events
 
 WARNING: it does pull half of CPAN your way (including Moose),
 so it's optional with a reason!

1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 my $debug = shift @ARGV;
6
7 use Test::More tests => 4;
8 use Data::Dump qw/dump/;
9 use lib 'lib';
10
11 BEGIN {
12 use_ok('CWMP::MemLeak');
13 }
14
15 #use Cwd qw/abs_path/;
16 #ok(my $abs_path = abs_path($0), "abs_path");
17 #$abs_path =~ s!/[^/]*$!/!; #!fix-vim
18
19 ok( my $leak = CWMP::MemLeak->new({
20 debug => $debug,
21 }), 'new' );
22 isa_ok( $leak, 'CWMP::MemLeak' );
23
24 ok( ! $leak->report, 'report' );
25

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26