Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Test::Fixture::DBIC::SUseraContributed Perl DocuTest::Fixture::DBIC::Schema(3)

NAME
       Test::Fixture::DBIC::Schema - load fixture data to storage.

SYNOPSIS
	 # in your t/*.t
	 use Test::Fixture::DBIC::Schema;
	 my $data = construct_fixture(
	   schema  => $self->model,
	   fixture => 'fixture.yaml',
	 );

	 # in your fixture.yaml
	 - schema: 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
	 - schema::Entry
	   name: entry2
	   data:
	     id: 2
	     title: please join
	     body: #coderepos-en@freenode.
	     timestamp:	2008-02-23 23:22:58

DESCRIPTION
       Test::Fixture::DBIC::Schema is fixture data loader for
       DBIx::Class::Schema.

METHODS
   construct_fixture
	 my $data = construct_fixture(
	   schema  => $self->model,
	   fixture => 'fixture.yaml',
	 );

       construct your fixture.

CODE COVERAGE
	   ----------------------------	------ ------ ------ ------ ------ ------ ------
	   File				  stmt	 bran	cond	sub    pod   time  total
	   ----------------------------	------ ------ ------ ------ ------ ------ ------
	   ...st/Fixture/DBIC/Schema.pm	 100.0	100.0	 n/a  100.0  100.0  100.0  100.0
	   Total			 100.0	100.0	 n/a  100.0  100.0  100.0  100.0
	   ----------------------------	------ ------ ------ ------ ------ ------ ------

AUTHOR
       Tokuhiro	Matsuno	<tokuhirom@gmail.com>

       Kan Fushihara

SEE ALSO
       DBIx::Class, Kwalify

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

perl v5.32.1			  2013-05-02	Test::Fixture::DBIC::Schema(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | CODE COVERAGE | AUTHOR | SEE ALSO | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Test::Fixture::DBIC::Schema&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help