helper

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package helper contains helper functions for unit tests.

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