Documentation ¶
Index ¶
- func ReadJsonData[T any](t testing.TB, input io.Reader) []T
- func ReadJsonLine[T any](t testing.TB, input io.Reader) func() (T, bool)
- func ReadLines(t testing.TB, input io.Reader) []string
- func ReadLinesInBytes(t testing.TB, input io.Reader) [][]byte
- func TempJsonLogFile(t testing.TB, modifiers ...Modifier) *os.File
- type Modifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadJsonData ¶
Returns []T for given file for testing purposes
func ReadJsonLine ¶
Returns T and bool depending on failing or not for a given file for testing purposes
func ReadLinesInBytes ¶
Returns log data in Byte format for single line for testing purposes
Types ¶
type Modifier ¶
type Modifier func(*fileConfig)
type Modifier Delegates functions for a given file
func WithPermissions ¶
Sets file premissions for testing purposes
Click to show internal directories.
Click to hide internal directories.