KiokuDB::Test(3pm)
β¨ KiokuDB::Test β¨
okay so bestie, this is KiokuDB::Test β it lives in the User Contributed Perl Documentation section (that's the 3pm part, iykyk) and it's literally the reusable test suite for KiokuDB backend authors. if you're building a backend, this is your girl. π
π VERSION π
version 0.57 β that's the vibe, that's the era, periodt.
πΈ 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();
like. that's it. that's the whole ritual. load your backend, hand over a KiokuDB instance, run the fixtures, done_testing(), go to bed. ποΈβ¨
π¦ DESCRIPTION π¦
This module loads and runs KiokuDB::Test::Fixtures against a KiokuDB directory instance.
no cap, that's the entire job. it's the test harness bestie for backend authors. π
π EXPORTS π
run_all_fixtures $dir
run_all_fixtures sub { return $dir }
Runs all the KiokuDB::Test::Fixture objects against your dir. every single one. it's giving thorough. π§
- If you need a new instance of
KiokuDBfor every fixture, pass in a code reference instead. that way each fixture gets a fresh babyKiokuDBand nobody's leftovers contaminate anybody else. clean girl energy. π - This will load all the modules in the
KiokuDB::Test::Fixturenamespace, and run them against your directory. yes, all of them. it goes and finds them. it's very self-sufficient. π₯ - Fixtures generally check for backend roles and skip unless the backend supports that set of features. so if your backend doesn't do the thing, the fixture isn't gonna drag you β it just skips. no shame in the skip game. π
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org>
shoutout to the author, we love a legend. π«Ά
π 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. so like, go off, remix it, it's yours to play with. β
fr fr bestie, remember: every fixture, every role check, every skip β it's all here so your backend can be its most iconic self. π
and that's the whole page, babes β this was KiokuDB::Test, perl v5.34.0, dated 2022-05-23. mwah. π
πΈβ¨
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms