searchtest

package
v5.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: AGPL-3.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EngineAll           = "all"
	EngineMySql         = "mysql"
	EnginePostgres      = "postgres"
	EngineElasticSearch = "elasticsearch"
	EngineBleve         = "bleve"
)

Variables

This section is empty.

Functions

func TestSearchChannelStore

func TestSearchChannelStore(t *testing.T, s store.Store, testEngine *SearchTestEngine)

func TestSearchFileInfoStore

func TestSearchFileInfoStore(t *testing.T, s store.Store, testEngine *SearchTestEngine)

func TestSearchPostStore

func TestSearchPostStore(t *testing.T, s store.Store, testEngine *SearchTestEngine)

func TestSearchUserStore

func TestSearchUserStore(t *testing.T, s store.Store, testEngine *SearchTestEngine)

Types

type ByChannelDisplayName

type ByChannelDisplayName model.ChannelList

func (ByChannelDisplayName) Len

func (s ByChannelDisplayName) Len() int

func (ByChannelDisplayName) Less

func (s ByChannelDisplayName) Less(i, j int) bool

func (ByChannelDisplayName) Swap

func (s ByChannelDisplayName) Swap(i, j int)

type SearchTestEngine

type SearchTestEngine struct {
	Driver     string
	BeforeTest func(*testing.T, store.Store)
	AfterTest  func(*testing.T, store.Store)
}

type SearchTestHelper

type SearchTestHelper struct {
	Store              store.Store
	Team               *model.Team
	AnotherTeam        *model.Team
	User               *model.User
	User2              *model.User
	UserAnotherTeam    *model.User
	ChannelBasic       *model.Channel
	ChannelPrivate     *model.Channel
	ChannelAnotherTeam *model.Channel
	ChannelDeleted     *model.Channel
}

func (*SearchTestHelper) CleanFixtures

func (th *SearchTestHelper) CleanFixtures() error

func (*SearchTestHelper) SetupBasicFixtures

func (th *SearchTestHelper) SetupBasicFixtures() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL