guide
guide copied to clipboard
Add some guides of writing go test
I still have some confusions about writing units. I hope the guide could contains some suggestions of writing tests. Maybe you could consider:
- how to define cases?
- should we define both "pass" and "not pass" cases? or just "pass" cases?
- how to test errors (or fatals/panics, if needed)?
- (maybe difficult) some guides about mock or noop servers/clients.
Thank you.