The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::MethodFixtures::Storage - Base class for storage of data for methods mocked with Test::MethodFixtures

SYNOPSIS

Subclasses should implement the following interface:

$storage->store(
    {   method => 'My::Module::mocked_method',
        key    => ...,
        input  => ...,
        output => ...,

        # optional:
        'Test::MethodFixtures' => $version,
        'My::Storage::Class' => $storage_version,

    }
);

# should die if nothing stored for that key
my $stored = $storage->retrieve(
    {   method => 'My::Module::mocked_method',
        key    => ...,
    }
);

DESCRIPTION

Base class for storage objects for Test::MethodFixtures

METHODS

The following methods should be implemented by any subclass.

store

retrieve