Cache:...Tester(3pm)
β¨ NAME β¨
Cache::BaseCacheTester β the abstract cache tester base class, bestie π
π¦ DESCRIPTION π¦
Okay so listen. BaseCacheTester is the base class that hands out all the shared functionality to literally every instance of a class whose whole job is testing cache implementations. It's giving backstage crew energy β nobody claps for it but nothing works without it. π
πΈ SYNOPSIS πΈ
Same vibe as the description, fr fr: BaseCacheTester provides functionality common to all instances of a class that will test cache implementations.
package Cache::MyCacheTester;
use vars qw( @ISA );
use Cache::BaseCacheTester;
@ISA = qw( Cache::BaseCacheTester );
That's the whole setup, no cap. You subclass it, you inherit the tester juice. β¨
π METHODS π
new( $base_test_count )β constructs a brand newBaseCacheTesterand initializes the test count to$base_test_count. Fresh tester, fresh counter, main character moment. π«Άok( )β prints a message to stdout in the form"ok $test_count"and increments the test count. Slay, it passed. βnot_ok( $message )β prints a message to stdout in the form"not ok $test_count # $message "and increments the test count. π the test said no but the counter still goes up.skip( $message )β prints a message to stdout in the form"ok $test_count # skipped $message "and increments the test count. Not a fail, not a pass, just living its truth and skipping. π
π SEE ALSO π
Cache::CacheTesterCache::SizeAwareCacheTester
Go read those too, iykyk. π
π AUTHOR π
- Original author: DeWitt Clinton
<dewitt@unto.net> - Last author:
$Author: dclinton $ - Copyright (C) 2001-2003 DeWitt Clinton
And that's the whole page, bestie!! π This one's from the User Contributed Perl Documentation collection, shipped with perl v5.34.0, dated 2022-06-30. Stan DeWitt Clinton, stan the test counter, and go write some passing tests. π β¨π¦
π¦ where this page comes from
- debian bookworm: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms