logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Cache::CacheTester -- a class for regression testing caches

Author

       Original author: DeWitt Clinton <dewitt@unto.net>

       Last author:     $Author: dclinton $

       Copyright (C) 2001-2003 DeWitt Clinton

perl v5.34.0                                       2022-06-30                            Cache::CacheTester(3pm)

Description

       The CacheTester is used to verify that a cache implementation honors its contract.

Methods

new($initial_count)
           Construct a new CacheTester object, with the counter starting at $initial_count.

       test()
           Run the tests.

Name

       Cache::CacheTester -- a class for regression testing caches

See Also

       Cache::Cache, Cache::BaseCacheTester

Synopsis

         use Cache::MemoryCache;
         use Cache::CacheTester;

         my $cache = new Cache::MemoryCache( );

         my $cache_tester = new Cache::CacheTester( 1 );

         $cache_tester->test( $cache );

See Also