The goal of this distribution is to make creation of test data for DBIx::Class based applications/libraries much simpler, so your test cases can focus on the actual tests rather than creating the test data that they run on. It does this by allowing you to create objects in the database and automatically creating the object heiarchy (any parent objects required) for you. It will fill any unspecified columns with randomised data so that you do not rely on it in your tests and they will/should break if that data is relied upon.

Given a source name this function will return all of the parent sources (belongs_to) of the source. It is used by create_record to determine which extra sources need creating. It returns an array of hashes of the following format.

This method will create some randomised data of the specified type (varchar, float, timestamp etc). It is used internally to fill in the unspecified fields

# This will return a random string of the format 'fds fdsdfas edqw nakqw'
my $random_data = $factory->random_data('varchar');
# This will return a datetime object set to a random time/date
my $random_data = $factory->random_data('timestamp');