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::SizeAwareCacheTester -- a class for regression testing size aware 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::SizeAwareCacheTester(3pm)

Description

       The SizeCacheTester is used to verify that a cache implementation honors its contract with respect to
       resizing capabilities

Methods

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

       test()
           Run the tests.

Name

       Cache::SizeAwareCacheTester -- a class for regression testing size aware caches

See Also

       Cache::Cache, Cache::BaseCacheTester, Cache::CacheTester

Synopsis

         use Cache::SizeAwareMemoryCache;
         use Cache::SizeAwareCacheTester;

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

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

         $cache_tester->test( $cache );

See Also