{"modulePath":"github.com/nmintoh/dserver","version":"v5.11.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testlib\n\ntestlib exposes helper methods for running unit tests against a containerized test store.\n\n## Functions\n\n```go\nfunc SetupTestResources() (string, error)\n```\n\n## Types\n\n```go\ntype FakeClusterInterface struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *FakeClusterInterface) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError\n```\n\n```go\nfunc (c *FakeClusterInterface) GetClusterId() string\n```\n\n```go\nfunc (c *FakeClusterInterface) GetClusterInfos() []*model.ClusterInfo\n```\n\n```go\nfunc (c *FakeClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.AppError)\n```\n\n```go\nfunc (c *FakeClusterInterface) GetLogs(page, perPage int) ([]string, *model.AppError)\n```\n\n```go\nfunc (c *FakeClusterInterface) GetMyClusterInfo() *model.ClusterInfo\n```\n\n```go\nfunc (c *FakeClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError)\n```\n\n```go\nfunc (c *FakeClusterInterface) IsLeader() bool\n```\n\n```go\nfunc (c *FakeClusterInterface) NotifyMsg(buf []byte)\n```\n\n```go\nfunc (c *FakeClusterInterface) RegisterClusterMessageHandler(event string, crm einterfaces.ClusterMessageHandler)\n```\n\n```go\nfunc (c *FakeClusterInterface) SendClearRoleCacheMessage()\n```\n\n```go\nfunc (c *FakeClusterInterface) SendClusterMessage(cluster *model.ClusterMessage)\n```\n\n```go\nfunc (c *FakeClusterInterface) StartInterNodeCommunication()\n```\n\n```go\nfunc (c *FakeClusterInterface) StopInterNodeCommunication()\n```\n\n```go\ntype HelperOptions struct {\n\tEnableStore     bool\n\tEnableResources bool\n}\n```\n\n```go\ntype MainHelper struct {\n\tSettings         *model.SqlSettings\n\tStore            store.Store\n\tSqlSupplier      *sqlstore.SqlSupplier\n\tClusterInterface *FakeClusterInterface\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMainHelper() *MainHelper\n```\n\n```go\nfunc NewMainHelperWithOptions(options *HelperOptions) *MainHelper\n```\n\n```go\nfunc (h *MainHelper) Close() error\n```\n\n```go\nfunc (h *MainHelper) GetClusterInterface() *FakeClusterInterface\n```\n\n```go\nfunc (h *MainHelper) GetSqlSettings() *model.SqlSettings\n```\n\n```go\nfunc (h *MainHelper) GetSqlSupplier() *sqlstore.SqlSupplier\n```\n\n```go\nfunc (h *MainHelper) GetStore() store.Store\n```\n\n```go\nfunc (h *MainHelper) Main(m *testing.M)\n```\n\n```go\ntype TestStore struct {\n\tstore.Store\n}\n```\n\n```go\nfunc (s *TestStore) Close()\n```\n\n","path":"github.com/nmintoh/dserver/testlib","name":"testlib","synopsis":"testlib exposes helper methods for running unit tests against a containerized test store.","isRedistributable":true}
