testutil

package
v1.0.0-...-8883843 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStreamingRPCError

func AssertStreamingRPCError(t *testing.T, s StreamingRPC, tc StreamingRPCErrorTestCase)

AssertStreamingRPCError asserts a streaming RPC's error matches the given assertion in the test case.

func CgroupCompatible

func CgroupCompatible(t *testing.T)

func DockerCompatible

func DockerCompatible(t *testing.T)

DockerCompatible skips tests if docker is not present

func DockerIsConnected

func DockerIsConnected(t *testing.T) bool

DockerIsConnected checks to see if a docker daemon is available (local or remote)

func ExecCompatible

func ExecCompatible(t *testing.T)

func JavaCompatible

func JavaCompatible(t *testing.T)

func MountCompatible

func MountCompatible(t *testing.T)

func QemuCompatible

func QemuCompatible(t *testing.T)

func RequireRoot

func RequireRoot(t *testing.T)

RequireRoot skips tests unless running on a Unix as root.

func RktCompatible

func RktCompatible(t *testing.T)

Types

type StreamingRPC

type StreamingRPC interface {
	StreamingRpcHandler(method string) (structs.StreamingRpcHandler, error)
}

StreamingRPC may be satisfied by client.Client or server.Server.

type StreamingRPCErrorTestCase

type StreamingRPCErrorTestCase struct {
	Name   string
	RPC    string
	Req    interface{}
	Assert func(error) bool
}

StreamingRPCErrorTestCase is a test case to be passed to the assertStreamingRPCError func.

Jump to

Keyboard shortcuts

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