Documentation ¶
Index ¶
- func FixtureGoldenFileName(t *testing.T, name string) string
- func GetFreePort(t testing.TB) int
- func GetMapKeys(t *testing.T, m interface{}) []string
- func GetTestEtcd(t *testing.T) (*integration.ClusterV3, *clientv3.Client)
- func GetTestNatsServer(t *testing.T) *server.Server
- func ReadFile(t *testing.T, filepath string) []byte
- func ShouldAlwaysReturn(t testing.TB, f interface{}, v interface{}, timeouts ...time.Duration)
- func ShouldEventuallyReceive(t testing.TB, c interface{}, timeouts ...time.Duration) interface{}
- func ShouldEventuallyReturn(t testing.TB, f interface{}, v interface{}, timeouts ...time.Duration)
- func StartProcess(t testing.TB, program string, args ...string) *exec.Cmd
- func StartServer(t testing.TB, frontend bool, debug bool, svType string, port int, ...) func()
- func WriteFile(t *testing.T, filepath string, bytes []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixtureGoldenFileName ¶
FixtureGoldenFileName returns the golden file name on fixtures path
func GetMapKeys ¶
GetMapKeys returns a string slice with the map keys
func GetTestEtcd ¶
GetTestEtcd gets a test in memory etcd server
func GetTestNatsServer ¶
GetTestNatsServer gets a test nats server
func ShouldAlwaysReturn ¶
ShouldAlwaysReturn asserts that the return of f should always be v, timeouts: 0 - evaluation interval, 1 - timeout
func ShouldEventuallyReceive ¶
ShouldEventuallyReceive should asserts that eventually channel c receives a value
func ShouldEventuallyReturn ¶
ShouldEventuallyReturn asserts that eventually the return of f should be v, timeouts: 0 - evaluation interval, 1 - timeout
func StartProcess ¶
StartProcess starts a process
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.