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 => ...,
        }
    );

    my $stored = $storage->retrieve(
        {   method => 'My::Module::mocked_method',
            key    => ...,
        }
    );

    my $is_stored = $storage->is_stored(
        {   method => 'My::Module::mocked_method',
            key    => ...,
        }
    );
    if ($is_stored) {
        ...    # call retrieve()
    } else {
        ...    # call store()
    }

DESCRIPTION

Base class for storage objects for Test::MethodFixtures