test_helpers

package
v0.0.0-...-9dbb984 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchActualLRP

func MatchActualLRP(expected *models.ActualLRP) types.GomegaMatcher

func MatchActualLRPGroup

func MatchActualLRPGroup(expected *models.ActualLRPGroup) types.GomegaMatcher

func NewSQLRunner

func NewSQLRunner(dbName string) sqlrunner.SQLRunner

func ReplaceQuestionMarks

func ReplaceQuestionMarks(queryString string) string

func UseMySQL

func UseMySQL() bool

func UsePostgres

func UsePostgres() bool

func UseSQL

func UseSQL() bool

Types

type ConsulHelper

type ConsulHelper struct {
	// contains filtered or unexported fields
}

func NewConsulHelper

func NewConsulHelper(logger lager.Logger, consulClient consuladapter.Client) *ConsulHelper

func (*ConsulHelper) RegisterCell

func (t *ConsulHelper) RegisterCell(cell *models.CellPresence)

type DeepEqualMatcher

type DeepEqualMatcher struct {
	// contains filtered or unexported fields
}

func DeepEqual

func DeepEqual(expected interface{}) DeepEqualMatcher

func (DeepEqualMatcher) FailureMessage

func (m DeepEqualMatcher) FailureMessage(actual interface{}) (message string)

func (DeepEqualMatcher) Match

func (m DeepEqualMatcher) Match(actual interface{}) (success bool, err error)

func (DeepEqualMatcher) NegatedFailureMessage

func (m DeepEqualMatcher) NegatedFailureMessage(actual interface{}) (message string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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