Documentation ¶
Index ¶
- func DecodeJSON(t *testing.T, reader io.Reader, data any)
- func EncodeJSON(t *testing.T, writer io.Writer, data any)
- func MarshalJSON(t *testing.T, data any) []byte
- func Read(t *testing.T, reader io.Reader, data []byte)
- func ReadAll(t *testing.T, reader io.Reader) []byte
- func UnmarshalJSON(t *testing.T, dJSON []byte, data any)
- func Write(t *testing.T, writer io.Writer, data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
DecodeJSON decodes data from the provided reader into the given interface fatally terminating the current test in the event of a failure.
func EncodeJSON ¶
EncodeJSON marshals then writes the provided interface to the given writer fatally terminating the current test in the event of a failure.
func MarshalJSON ¶
MarshalJSON marshals the provided interface to JSON fatally terminating the current test in the event of a failure.
func Read ¶
Read len(data) bytes from the provided reader fatally terminating the current test in the even of a failure.
func ReadAll ¶
ReadAll the data from the provided reader fatally terminating the current test in the even of a failure.
func UnmarshalJSON ¶
UnmarshalJSON unmarshals the provide JSON data into the given interface fatally terminating the current test in the even of a failure.
Types ¶
This section is empty.