testutil

package
v1.17.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMockMetadataAPI

func WithMockMetadataAPI(t *testing.T, fn func(ts *httptest.Server), opts MockMetadataAPIOptions)

func WithTemporaryDirectory

func WithTemporaryDirectory(t *testing.T, prefix string, fn func(name string))

Types

type MockMetadataAPIOptions

type MockMetadataAPIOptions struct {
	SpecResponse         interface{}
	SpecQueryResponses   map[string]interface{}
	WorkflowRunResponses map[string]interface{}
	ExpectedDecorators   map[string]map[string]string
}

Jump to

Keyboard shortcuts

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