test

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepositoryPath

func GetRepositoryPath() string

func JSONMarshalStrict

func JSONMarshalStrict(obj interface{}) []byte

simple wrapper to json.Marshal for testing, to ensure the test gets aborted in case of error

func JSONUnmarshal

func JSONUnmarshal(src []byte, dst interface{})

simple wrapper to json.Unmarshal for testing, to ensure the test gets aborted in case of error

func ReadFile

func ReadFile(filepath string) []byte

simple wrapper to os.ReadFile for testing, to ensure the test gets aborted in case of error

func YAMLMarshalStrict

func YAMLMarshalStrict(obj interface{}) []byte

simple wrapper to yaml.Unmarshal for testing, to ensure the test gets aborted in case of error

Types

This section is empty.

Jump to

Keyboard shortcuts

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