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 => ...,
}
);
# should die if nothing stored for that key
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