Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestStoragePlugin ¶
TestStoragePlugin is a test helper that implements a storage plugin backed by a mongodb instance that saves data to a temporary directory.
func NewTestStoragePlugin ¶
func NewTestStoragePlugin(tc *context.TestContext) *TestStoragePlugin
func (*TestStoragePlugin) Close ¶
func (s *TestStoragePlugin) Close() error
Close the connection to the database.
func (*TestStoragePlugin) Connect ¶
func (s *TestStoragePlugin) Connect() error
Connect sets up the test mongo instance if necessary.
func (*TestStoragePlugin) Setup ¶
func (s *TestStoragePlugin) Setup() error
Setup runs mongodb on an alternate Port
func (*TestStoragePlugin) Teardown ¶
func (s *TestStoragePlugin) Teardown() error
Teardown stops the test mongo instance and cleans up any temporary files.
Click to show internal directories.
Click to hide internal directories.