NewMockServerAndAsker creates both a MockHttpServer and AskMocker it's super common to New both the mock server and asker at the same time
()
| 87 | // NewMockServerAndAsker creates both a MockHttpServer and AskMocker |
| 88 | // it's super common to New both the mock server and asker at the same time |
| 89 | func NewMockServerAndAsker() (*MockHttpServer, *AskMocker) { |
| 90 | server := NewMockHttpServer() |
| 91 | qa := NewAskMocker() |
| 92 | return server, qa |
| 93 | } |
| 94 | |
| 95 | // Close will close both a MockHttpServer and AskMocker |
| 96 | // it's super common to Close both the mock server and asker at the same time |