MustCloseMain closes the program. Fail on error.
(tb testing.TB, m *main.Main)
| 37 | |
| 38 | // MustCloseMain closes the program. Fail on error. |
| 39 | func 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. |
no test coverage detected