Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardLogging ¶
func DiscardLogging() (restore func())
DiscardLogging sets the global Logrus output to utils.Discard
func JSONEq ¶
JSONEq asserts that two JSON strings are equivalent or both empty.
require.JSONEq(t, "", "") or require.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
func SetupLoggingBuffer ¶
SetupLoggingBuffer creates an empty buffer and sets it as a Logrus output globally. Returns the created buffer so you can check what was logged.
func ToJSONBytes ¶
ToJSONBytes converts any structure to a byte slice of its JSON representation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.