helper

package
v0.0.0-...-e443136 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RepoBaseDir string
View Source
var RepoBasePkg string

Functions

func Testdata

func Testdata(path string) (io.ReadCloser, error)

Testdata fetches a testdata file. The path should be relative to the /test/testdata directory.

func TestdataFromJSON

func TestdataFromJSON(path string, target interface{}) error

TestdataFromJSON fetches a testdata file and decodes it into a type. The path should be compatible with Testdata(), and the target should be compatible with Golang's json.Unmarshal().

Types

This section is empty.

Jump to

Keyboard shortcuts

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