tests

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const FakeNamespace = "fake"

Variables

This section is empty.

Functions

func DurationBetween

func DurationBetween() func(t *testing.T, expected time.Duration, skew float64)

func NewArangoClusterSynchronization

func NewArangoClusterSynchronization(name string) *api.ArangoClusterSynchronization

func NewArangoDeployment

func NewArangoDeployment(name string) *api.ArangoDeployment

func NewCustomRequestHandler

func NewCustomRequestHandler(t *testing.T, method string, path string, reqVerify func(t *testing.T, r *http.Request), respHeaders func(t *testing.T) map[string]string, resp func(t *testing.T) (int, interface{})) http.HandlerFunc

func NewEmptyInspector

func NewEmptyInspector(t *testing.T) inspectorInterface.Inspector

func NewSimpleHandler

func NewSimpleHandler(t *testing.T, method string, path string, resp func(t *testing.T) (int, interface{})) http.HandlerFunc

func WithLogScanner

func WithLogScanner(t *testing.T, name string, in func(t *testing.T, s LogScanner))

Types

type AsyncHandler

type AsyncHandler interface {
	ID() string

	Start()
	InProgress()
	Missing()
	Done()
}

func NewAsyncHandler

func NewAsyncHandler(t *testing.T, s Server, method string, path string, retCode int, ret interface{}) AsyncHandler

type LogScanner

type LogScanner interface {
	Factory() logging.Factory

	Get(timeout time.Duration) (string, bool)
	GetData(t *testing.T, timeout time.Duration, obj interface{}) bool
}

type Server

type Server interface {
	NewConnection() driver.Connection
	NewClient() driver.Client

	Handle(f http.HandlerFunc)
	Addr() string
	Stop()
}

func NewServer

func NewServer(t *testing.T) Server

Jump to

Keyboard shortcuts

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