Documentation
¶
Index ¶
- Variables
- func RunBench(b *testing.B, s Bencher)
- func SingleEnvs() []*setup.TestingEnvConfig
- type Base
- type Bench
- type Bencher
- type FractionEnv
- type Single
- func (s *Single) AfterTest(suiteName, testName string)
- func (s *Single) AssertDocsEqual(originalDocs []string, indexes []int, foundDocs []string)
- func (s *Single) AssertSearch(query string, originalDocs []string, indexes []int)
- func (s *Single) BeforeTest(suiteName, testName string)
- func (s *Single) Bulk(docs []string)
- func (s *Single) Ingestor() *setup.Ingestor
- func (s *Single) Restart()
- func (s *Single) RestartIngestor()
- func (s *Single) RunFracEnvs(envs map[FractionEnv]bool, stopOnFail bool, f func())
- func (s *Single) SearchDocs(query string, size int, order seq.DocsOrder) []string
- func (s *Single) Store() *storeapi.Store
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFracEnvs = map[FractionEnv]bool{ ActiveEnv: true, SealedEnv: true, RestartedEnv: true, }
Functions ¶
func SingleEnvs ¶
func SingleEnvs() []*setup.TestingEnvConfig
Types ¶
type Base ¶
type Base struct {
suite.Suite
SuiteName string
DataDir string
// can be nil, if tests don't require env
Config *setup.TestingEnvConfig
}
func NewBase ¶
func NewBase(config *setup.TestingEnvConfig) *Base
func (*Base) BeforeTest ¶
func (*Base) RecreateDataDir ¶
func (s *Base) RecreateDataDir()
func (*Base) TearDownSuite ¶
func (s *Base) TearDownSuite()
type FractionEnv ¶
type FractionEnv int
const ( ActiveEnv FractionEnv = iota SealedEnv RestartedEnv )
type Single ¶
type Single struct {
Base
Env *setup.TestingEnv
}
Single suite for testing with 1 ingestor and 1 store
func NewSingle ¶
func NewSingle(cfg *setup.TestingEnvConfig) *Single
func (*Single) AssertDocsEqual ¶
func (*Single) AssertSearch ¶
func (*Single) BeforeTest ¶
func (*Single) RestartIngestor ¶
func (s *Single) RestartIngestor()
func (*Single) RunFracEnvs ¶
func (s *Single) RunFracEnvs(envs map[FractionEnv]bool, stopOnFail bool, f func())
func (*Single) SearchDocs ¶
Click to show internal directories.
Click to hide internal directories.