devel/p5-Test2-Tools-MemoryCycle 0.01 FreeBSD
Check for memory leaks and circular memory references
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 11.4 KiB, 42.4 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 |
|---|---|---|
| FreeBSD | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
| DragonFly | devel/p5-Test2-Tools-MemoryCycle | 0.01 |
Install
Binary package:
pkg install p5-Test2-Tools-MemoryCycle
From the ports tree:
cd /usr/ports/devel/p5-Test2-Tools-MemoryCycle/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Test2-Tools-MemoryCycle>0:devel/p5-Test2-Tools-MemoryCycle
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 |
| FreeBSD:14:quarterly | 0.01 | 0.01 | n/a | 0.01 | 0.01 |
| FreeBSD:15:latest | 0.01 | 0.01 | n/a | 0.01 | 0.01 |
| FreeBSD:15:quarterly | 0.01 | 0.01 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.01 | 0.01 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
p5-Devel-Cycle>=0: devel/p5-Devel-Cyclep5-PadWalker>=1.0: devel/p5-PadWalker
Runtime 2
p5-Devel-Cycle>=0: devel/p5-Devel-Cyclep5-PadWalker>=1.0: devel/p5-PadWalker
Test 1
p5-Test-Simple>=1.302200: devel/p5-Test-Simple
The full lists below include those, and their dependencies in turn.
Build dependencies 3
Run dependencies 3
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Test2/Tools/MemoryCycle.pm
- %%PERL5_MAN3%%/Test2::Tools::MemoryCycle.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Test2-Tools-MemoryCycle-0.01.tar.gz | 16292 | 535b3dca542a33251512ade4b5a7dbebe3c448d83f880d198e43dc127979698b |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.