e2e

package
v1.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateGolden = os.Getenv("GENERATE_GOLDEN") == "true"

GenerateGolden is used to check whether generating golden

Functions

func ReadJSON

func ReadJSON(dir, fname string, resp protoreflect.ProtoMessage) error

ReadJSON reads in the golden Json file.

func Setup

func Setup(option ...*TestOption) (pb.MixerClient, error)

Setup creates local server and client.

func SetupBqOnly

func SetupBqOnly() (pb.MixerClient, error)

SetupBqOnly creates local server and client with access to BigQuery only.

func UpdateGolden

func UpdateGolden(v interface{}, root, fname string)

UpdateGolden updates the golden file for native typed response.

func UpdateProtoGolden

func UpdateProtoGolden(
	resp protoreflect.ProtoMessage, root string, fname string)

UpdateProtoGolden updates the golden file for protobuf response.

Types

type TestOption

type TestOption struct {
	UseCache bool
	UseMemdb bool
}

TestOption holds the options for integration test.

Jump to

Keyboard shortcuts

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