On Mon, 11 Oct 2021 20:43:09 +0000 Eric Wong <p5p@yhbt.net> wrote: > Does anybody here have suggestions on how to go about adding > leak tests to packages like Encode? I usually use Test::Refcount. (Disclaimer: I wrote it) It asserts that the refcount of a thing is what the test script claims it to be (often 1). If it fails, it writes a heapdump file you can analyse using Devel::MAT. (Disclaimer: I wrote that too) -- Paul "LeoNerd" Evans leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/Thread Previous | Thread Next