KiokuDB::Test(3pm)

KiokuDB::Test3pm

Reusable tests for kiokudb backend authors.

Usage

    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();

Version

version 0.57

Overview

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

Exports

run_all_fixtures $dir
run_all_fixtures sub { return $dir }

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.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Yuval Kogman <[email protected]>

From libkiokudb-perl 0.57-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.