BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Test2-Tools-MemoryCycle0.01
DragonFlydevel/p5-Test2-Tools-MemoryCycle0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.010.010.010.010.01
FreeBSD:14:quarterly0.010.01n/a0.010.01
FreeBSD:15:latest0.010.01n/a0.010.01
FreeBSD:15:quarterly0.010.01n/an/an/a
FreeBSD:16:latest0.010.01n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

Test 1

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
FileSizeSHA256
Test2-Tools-MemoryCycle-0.01.tar.gz16292535b3dca542a33251512ade4b5a7dbebe3c448d83f880d198e43dc127979698b
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.