Scroll to navigation

KiokuDB::Test(3pm) User Contributed Perl Documentation KiokuDB::Test(3pm)

NAME

KiokuDB::Test - Reusable tests for KiokuDB backend authors.

VERSION

version 0.57

SYNOPSIS

    use Test::More;
    use KiokuDB::Test;
    use KiokuDB::Backend::MySpecialBackend;
    my $b = KiokuDB::Backend::MySpecialBackend->new( ... );
    run_all_fixtures( KiokuDB->new( backend => $b ) );
    done_testing();

DESCRIPTION

This module loads and runs KiokuDB::Test::Fixtures against a KiokuDB directory instance.

EXPORTS

Runs all the KiokuDB::Test::Fixture objects against your dir.

If you need a new instance of KiokuDB for every fixture, pass in a code reference.

This will load all the modules in the KiokuDB::Test::Fixture namespace, and run them against your directory.

Fixtures generally check for backend roles and skip unless the backend supports that set of features.

AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-05-23 perl v5.34.0