MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Expect

Method Expect

pkg/webmiddleware/log_test.go:37–44  ·  view source on GitHub ↗
(t *testing.T, f func(*testing.T, log.Entry))

Source from the content-addressed store, hash-verified

35}
36
37func (ch logEntryChannel) Expect(t *testing.T, f func(*testing.T, log.Entry)) {
38 select {
39 case e := <-ch:
40 f(t, e)
41 case <-time.After(time.Second):
42 t.Fatal("Missing log entry")
43 }
44}
45
46func (ch logEntryChannel) ExpectNoLog(t *testing.T) {
47 select {

Callers 1

TestLogFunction · 0.80

Calls 2

AfterMethod · 0.80
FatalMethod · 0.65

Tested by

no test coverage detected