SYNOPSIS

use Test::More;
use Local::Test qw( test_backend );

subtest 'test my backend' => \&test_backend, $backend_object,
    collection => { ... },
    $list_objects,
    $set_object,
    $create_object;

DESCRIPTION

This module contains helper routines for testing Yancy.

SEE ALSO

Test::Builder

my $result = test_backend(
    $backend, $coll_name, $coll_conf,
    $list, $create, $set_to,
);

Test that a backend works properly. $backend is a backend object. $coll_name is the collection name to test. $coll_conf is the collection configuration (JSON schema). $list is a list of objects already in the backend. $create is a new object to test creating an object. $set_to is values the newly-create object will be set to, before being deleted.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 31:

Unknown directive: =sub