testutil

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Timeout is timeout for tests with waitgroup.
	Timeout = 1 * time.Minute

	// TimeoutShort is the timeout for tests with waitgroup that should timeout.
	TimeoutShort = Timeout / 20
)
View Source
const DefaultServerConfig = `` /* 2302-byte string literal not displayed */

Variables

This section is empty.

Functions

func AssertAlwaysTrueFor

func AssertAlwaysTrueFor(t *testing.T, duration time.Duration, assertions func() bool)

func AssertTrueEventually

func AssertTrueEventually(t *testing.T, assertions func() bool)

func CreateClientAndCluster

func CreateClientAndCluster(controller *rc.RemoteControllerClient) (hazelcast.Client, func())

func CreateClientAndClusterWithConfig

func CreateClientAndClusterWithConfig(controller *rc.RemoteControllerClient, cfg *config.Config) (hazelcast.Client, func())

func CreateClientAndClusterWithMembers

func CreateClientAndClusterWithMembers(controller *rc.RemoteControllerClient, memberAmount int) (hazelcast.Client, func())

func CreateCluster

func CreateCluster(controller *rc.RemoteControllerClient) func()

func NewNonDeserializableData

func NewNonDeserializableData() serialization.Data

func NewNonDeserializableDataSlice

func NewNonDeserializableDataSlice() []serialization.Data

func NewNonSerializableObject

func NewNonSerializableObject() interface{}

func NewNonSerializableObjectSlice

func NewNonSerializableObjectSlice() []interface{}

func NewSerializableData

func NewSerializableData() serialization.Data

func RandomString

func RandomString() string

func Read

func Read(filename string) (string, error)

func WaitTimeout

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool

Types

type NonSerializable

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

Jump to

Keyboard shortcuts

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