cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.96k stars 345 forks source link

mock http #110

Open baixiaoshi opened 5 years ago

baixiaoshi commented 5 years ago

i want to mock http , should i import third-part package? example gomock

cweill commented 5 years ago

Once gotests generates a test for you, you can import whatever packages you want in that test file. So you can import gomock if your test body requires mocking. Does that answer your question?