Documentation ¶
Index ¶
- func AnyLogEntryContainsField(tb testing.TB, key string, expectedValue interface{}, ...)
- func AnyLogEntryContainsMessage(tb testing.TB, expectedValue string, logEntries []*logrus.Entry)
- func Assert(tb testing.TB, condition bool, v ...interface{})
- func Equals(tb testing.TB, expected, actual interface{})
- func ErrorNil(tb testing.TB, err error)
- func ErrorNotNil(tb testing.TB, err error)
- func LogEntryContainsField(tb testing.TB, key string, expectedValue string, logEntry *logrus.Entry)
- func MakeGetRequest(handler http.Handler, uri string) (resp *httptest.ResponseRecorder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyLogEntryContainsField ¶
func AnyLogEntryContainsField(tb testing.TB, key string, expectedValue interface{}, logEntries []*logrus.Entry)
AnyLogEntryContainsField fails if no log entry is found to contain a field with the given key.
func AnyLogEntryContainsMessage ¶
AnyLogEntryContainsMessage fails if the log entries message does not match the expected value.
func ErrorNotNil ¶
ErrorNotNil fails the test if an err is not nil.
func LogEntryContainsField ¶
LogEntryContainsField fails if the log entry does not contain a field with the given key.
func MakeGetRequest ¶
func MakeGetRequest(handler http.Handler, uri string) (resp *httptest.ResponseRecorder)
MakeGetRequest performs a GET request using a given handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.