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::Tester - test utility for Cache implementations

Author

        Chris Leishman <chris@leishman.org>
        Based on work by DeWitt Clinton <dewitt@unto.net>

Description

       This module is used to run tests against an instance of a Cache implementation to ensure that it operates
       as required by the Cache specification.

Name

       Cache::Tester - test utility for Cache implementations

See Also

       Cache

Synopsis

         use Cache::Tester;

         BEGIN { plan tests => 2 + $CACHE_TESTS }

         use_ok('Cache::Memory');

         my $cache = Cache::Memory->new();
         ok($cache, 'Cache created');

         run_cache_tests($cache);

See Also