test_helper

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connections

func Connections(port string) ([]connection, error)

func DropConnection

func DropConnection(name string, port string) error

func DropConnectionAndWait added in v1.6.2

func DropConnectionAndWait(clientProvidedName string, port string, timeout time.Duration) error

func DropConnectionClientProvidedName

func DropConnectionClientProvidedName(clientProvidedName string, port string) error

func HaveMatchingData added in v1.6.1

func HaveMatchingData(expected string) types.GomegaMatcher

func IsConnectionAlive added in v1.6.2

func IsConnectionAlive(clientProvidedName string, port string) (bool, error)

IsConnectionAlive check if a connection is alive given its client provided name

Types

type MessageDataMatcher added in v1.6.1

type MessageDataMatcher struct {
	ExpectedData string
}

func (*MessageDataMatcher) FailureMessage added in v1.6.1

func (matcher *MessageDataMatcher) FailureMessage(actual any) (message string)

func (*MessageDataMatcher) Match added in v1.6.1

func (matcher *MessageDataMatcher) Match(actual any) (success bool, err error)

func (*MessageDataMatcher) NegatedFailureMessage added in v1.6.1

func (matcher *MessageDataMatcher) NegatedFailureMessage(actual any) (message string)

Jump to

Keyboard shortcuts

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