The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Test::Fixture::Teng - load fixture data to storage for Teng

SYNOPSIS

# in your t/*.t
my $data = construct_fixture(
db => Your::Teng::Class,
fixture => 'fixture.yaml',
);
# in your fixture.yaml
- table: entry
name: entry1
data:
id: 1
title: my policy
body: shut the f*ck up and write some code
timestamp: 2008-01-01 11:22:44
- table: entry
name: entry2
data:
id: 2
title: please join
body: #coderepos-en@freenode.
timestamp: 2008-02-23 23:22:58

DESCRIPTION

Test::Fixture::Teng is fixture data loader for Teng.

METHODS

construct_fixture

my $data = construct_fixture(
db => Your::Teng::Class,
fixture => 'fixture.yaml',
);

construct your fixture.

AUTHOR

Masahiro Iuchi <masahiro.iuchi _at_ gmail _dot_ com>

SEE ALSO

Teng, Kwalify

THANKS

Mostly copied from Test::Fixture::DBIxSkinny

REPOSITORY

LICENSE

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