NAME
Test::Mock::MongoDB::Collection - mock module for MongoDB::Collection class.
SYNOPSIS
You can get test mock object like so:
use Test::Mock::MongoDB qw( any );
my $mock = Test::Mock::MongoDB->new;
my $m_collection = $mock->get_collection;
DESCRIPTION
Current module mocks MongoDB::Collection class.
METHODS
init()
By default mocks methods get_collection()
and find()
. Or skips this method if skip_init
passed as true.
AUTHOR
cono <cono@cpan.org>
COPYRIGHT
Copyright 2014 - cono
LICENSE
Artistic v2.0