Documentation
¶
Index ¶
- Variables
- func ReadJSON(dir, fname string, resp protoreflect.ProtoMessage) error
- func Setup(option ...*TestOption) (pb.MixerClient, error)
- func SetupBqOnly() (pb.MixerClient, error)
- func UpdateGolden(v interface{}, root, fname string)
- func UpdateProtoGolden(resp protoreflect.ProtoMessage, root string, fname string)
- type TestOption
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 ¶
TestOption holds the options for integration test.
Click to show internal directories.
Click to hide internal directories.