devel/p5-Test2-Tools-MemoryCycle 0.01 DragonFly
Check for memory leaks and circular memory references
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 10.9 KiB, 42.7 KiB installed
Description
Perl's garbage collection has one big problem: Circular references can't get cleaned up. The above example is the sort of thing that sometimes trips me up, where a code reference inside a data structure refers to another part of the data structure. There already exists a good testing module to find these sort of problems: Test::Memory::Cycle, so why write this one? Well that module uses Test::Builder, and this one instead uses Test2::API. If you want to write Test2::Suite tests without pulling in Test::Builder then this is the cycle testing module for you.
Test2::Tools::MemoryCycle also uses the standard Exporter interface, instead of letting you specify a test plan. That behavior was once in vogue I guess, but I do not care for it.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
| FreeBSD | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
| HardenedBSD | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
| GhostBSD | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
Install
Binary package:
pkg install p5-Test2-Tools-MemoryCycle
From DPorts:
cd /usr/dports/devel/p5-Test2-Tools-MemoryCycle && make install clean
Dependencies
Run dependencies 3
No port depends on this one.