p5-Test-Refcount - Assert reference counts on objects

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename p5-Test-Refcount-0.08_1.txz
Package name p5-Test-Refcount
Package version 0.08
Package release 1
Package architecture amd64
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Test-Refcount
License GPLv1+, ART10
Maintainer sunpoet@FreeBSD.org
Download size 10.08 KB
Installed size 17.83 KB
The Perl garbage collector uses simple reference counting during the normal
execution of a program. This means that cycles or unweakened references in other
parts of code can keep an object around for longer than intended. To help avoid
this problem, the reference count of a new object from its class constructor
ought to be 1. This way, the caller can know the object will be properly
DESTROYed when it drops all of its references to it.
Test::Refcount provides two test functions to help ensure this property holds
for an object class, so as to be polite to its callers.
If the assertion fails; that is, if the actual reference count is different to
what was expected, a trace of references to the object can be printed, if Marc
Lehmann's Devel::FindRef module is installed. This may assist the developer in
finding where the references are.
WWW: https://metacpan.org/release/Test-Refcount


Package Version Architecture Repository
p5-Test-Refcount-0.08_1.txz 0.08 i386 FreeBSD Ports Latest
p5-Test-Refcount-0.08_1.txz 0.08 amd64 FreeBSD Ports Quarterly
p5-Test-Refcount-0.08_1.txz 0.08 i386 FreeBSD Ports Quarterly
p5-Test-Refcount - - -


Name Value
p5-Devel-MAT = 0.42
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Test-Refcount-0.08_1.txz
Source Package devel/p5-Test-Refcount

Install Howto

Install p5-Test-Refcount txz package:

# pkg install p5-Test-Refcount

See Also

Package Description
p5-Test-Reporter-1.62_1.txz Sends test results to cpan-testers@perl.org
p5-Test-Reporter-Transport-Metabase-1.999010.txz Metabase transport for Test::Reporter
p5-Test-Requires-0.10.txz Perl extension for checking to see if the module can be loaded
p5-Test-Requires-Git-1.008.txz Check your test requirements against the available version of Git
p5-Test-RequiresInternet-0.05.txz Test network connectivity before functional tests
p5-Test-Roo-1.004.txz Composable, reusable tests with roles and Moo
p5-Test-Script-1.25.txz Test::Script - Cross-platform basic tests for scripts
p5-Test-Script-Run-0.08_1.txz Test the script with run
p5-Test-SharedFork-0.35.txz Perl extension for fork test
p5-Test-Signature-1.11.txz Perl Automated SIGNATURE testing
p5-Test-Simple-1.302162.txz Basic utilities for writing tests in perl
p5-Test-Singleton-1.03_2.txz Test for Singleton classes
p5-Test-Spec-0.54.txz Write tests in a declarative specification style
p5-Test-Spelling-0.20_1.txz Check for spelling errors in POD files
p5-Test-Strict-0.47.txz Test and report on use strict/warnings coverage