Subject: | Memory Leak - ArrayRef[Str] |
Date: | Mon, 7 Nov 2016 16:18:07 +0000 |
To: | bug-MooseX-Types [...] rt.cpan.org |
From: | Keith Broughton <keithbro256 [...] gmail.com> |
Hi,
Here is a test which fails due to a memory leak:
use Test::Most;
use Test::LeakTrace;
use MooseX::Types::Moose qw(ArrayRef Str);
use MooseX::Params::Validate;
sub do_stuff {
my ($self, $names) = validated_list(\@_,
names => { isa => ArrayRef[Str] },
);
return 1;
}
no_leaks_ok {
do_stuff(names => [ 'a', 'b' ]);
};
done_testing;
prove -l t/leak.t
t/leak.t .. 1/?
# Failed test 'leaks 6 <= 0'
# at t/leak.t line 18.
# '6'
# <=
# '0'
Please let me know if I can provide any further information.
Thanks
Keith