Documentation
¶
Overview ¶
Package utils provides common helper functions that used in code base.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReaderFromFile ¶
func GetReaderFromFile(tb testing.TB, fPath string) io.ReadCloser
GetReaderFromFile is a test helper that opens passed filepath and returns reader. Caller of this function is responsible for closing io.ReadCloser.
func PrettyPrint ¶
PrettyPrint appends to passed struct indents and returns a human-readable form of struct. Each element of JSON object will start from indent with prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.