Subject: | Error in the documentation for CHI::Driver::Development |
This is a documentation problem for the (excellent - thanks for
prodiving it!) testing framework for new drivers. The problem is in
CHI::Driver::Development, see the section "Add a module called
CHI::Driver::MyDriver::t::CHIDriverTests to your distribution containing".
A new driver will fail the tests unless it includes something like
sub testing_driver_class {
'CHI::Driver::MyDriver'
}
in CHI::Driver::MyDriver::t::CHIDriverTests.
The failures will be along the lines of:
Failed test 'cache isa CHI::Driver::CHIDriverTests'
at /usr/local/share/perl/5.14.2/CHI/t/Driver.pm line 857.
(in CHI::Driver::MyDriver::t::CHIDriverTests->test_l1_cache)
cache isn't a 'CHI::Driver::CHIDriverTests' it's a
'Moose::Meta::Class::__ANON__::SERIAL::3'