Documentation ¶
Overview ¶
Package test is a package that is used to run a boardgame/server.StorageManager implementation through its paces and verify it does everything correctly.
Index ¶
- func AgentsTest(factory StorageManagerFactory, testName string, connectConfig string, ...)
- func BasicTest(factory StorageManagerFactory, testName string, connectConfig string, ...)
- func ListingTest(factory StorageManagerFactory, testName string, connectConfig string, ...)
- func Test(factory StorageManagerFactory, testName string, connectConfig string, ...)
- func UsersTest(factory StorageManagerFactory, testName string, connectConfig string, ...)
- type StorageManager
- type StorageManagerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentsTest ¶
func AgentsTest(factory StorageManagerFactory, testName string, connectConfig string, t *testing.T)
AgentsTest does the basic tests of Agents.
func BasicTest ¶
func BasicTest(factory StorageManagerFactory, testName string, connectConfig string, t *testing.T)
BasicTest does the basic tests
func ListingTest ¶
func ListingTest(factory StorageManagerFactory, testName string, connectConfig string, t *testing.T)
ListingTest does the basic tests of Listing.
Types ¶
type StorageManager ¶
type StorageManager interface { api.StorageManager //CleanUp will be called when a given manager is done and can be dispoed of. CleanUp() }
StorageManager is the interface for everything that needs to be connected. It's just api.StorageManager with one more method.
type StorageManagerFactory ¶
type StorageManagerFactory func() StorageManager
StorageManagerFactory vends a new StorageManager to test. Users of this package provide one.
Click to show internal directories.
Click to hide internal directories.