MCPcopy
hub / github.com/benbjohnson/wtf / MustCloseMain

Function MustCloseMain

cmd/wtfd/main_test.go:39–44  ·  view source on GitHub ↗

MustCloseMain closes the program. Fail on error.

(tb testing.TB, m *main.Main)

Source from the content-addressed store, hash-verified

37
38// MustCloseMain closes the program. Fail on error.
39func MustCloseMain(tb testing.TB, m *main.Main) {
40 tb.Helper()
41 if err := m.Close(); err != nil {
42 tb.Fatal(err)
43 }
44}
45
46// MustCreateUser is a test helper for creating a new user in the system by
47// calling the underlying DB service directly.

Callers 2

TestRedirectToLoginFunction · 0.85
TestCreateDialFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected