test

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 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 any) []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 any)

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

func JSONUnmarshalFromFile added in v0.51.0

func JSONUnmarshalFromFile(filepath string, dst any)

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 any) []byte

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

func YAMLUnmarshal added in v0.51.0

func YAMLUnmarshal(src []byte, dst any)

func YAMLUnmarshalFromFile added in v0.51.0

func YAMLUnmarshalFromFile(filepath string, dst any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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