File: 03-leaks.t

package info (click to toggle)
libhtml-packer-perl 2.030000-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 296 kB
  • ctags: 155
  • sloc: perl: 2,706; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!perl

use strict;
use warnings;

use Test::More;
use HTML::Packer; 

if (! eval "use Test::Memory::Cycle; 1;" ) {
	plan skip_all => 'Test::Memory::Cycle required for this test';
}

my $packer = HTML::Packer->init;
memory_cycle_ok( $packer );

my $row = "<html><head> <title>Foo</title></head><body></body></html>";

for ( 1 .. 5 ) { 
	ok( $packer->minify( \$row,{} ),'minify' );
}

memory_cycle_ok( $packer );
done_testing();