=for comment POD_DERIVED_INDEX_GENERATED
The following documentation is automatically generated.  Please do not edit
this file, but rather the original, inline with Test::WebService::Amazon::DynamoDB::Server
at lib/Test/WebService/Amazon/DynamoDB/Server.pm
(on the system that originally ran this).
If you do edit this file, and don't want your changes to be removed, make
sure you change the first line.

=encoding utf8

=cut

=head1 NAME

Test::WebService::Amazon::DynamoDB - functions for testing the DynamoDB code

=head1 VERSION

version 0.001

=head1 DESCRIPTION

Mostly intended as convenience functions for the 
L<WebService::Amazon::DynamoDB::Server> test suite.

=head2 ddb_server

Runs a block of code with a custom L<WebService::Amazon::DynamoDB::Server> instance.

Primarily intended as a visual aid to allow setting
up the test spec:

 my $srv = ddb_server {
  add_table name => 'xyz', ...;
  expect_events {
   put_item => 3,
   get_item => 4,
   describe_table => 1
  }
 };
 ...

Returns that instance when done.

=head2 add_table

Adds the given table spec.

=head2 expect_events

Indicates that we're expecting certain events to fire.

 expect_events {
  create_table => 7,
  delete_table => 2,
  put_item => 5
 }

=head1 INHERITED METHODS

=over 4

=item L<Exporter>

L<as_heavy|Exporter/as_heavy>, L<export|Exporter/export>, L<export_fail|Exporter/export_fail>, L<export_ok_tags|Exporter/export_ok_tags>, L<export_tags|Exporter/export_tags>, L<export_to_level|Exporter/export_to_level>, L<import|Exporter/import>, L<require_version|Exporter/require_version>

=back

=head1 AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

=head1 LICENSE

Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.
