go-patterns
go-patterns copied to clipboard
Using table driven test and go-capturer can help
I was practicing some patterns in my own repo and this repo has been really helpful in telling the basics in just few minutes. Thanks @bvwells
Just some suggestion to make it more easy to read:
- Table driven tests at many places can simplify reading tests. Example.
- Using go-capturer library (or keeping a copy of it in this repo) can also make testing easier to read and would reduce a lot of boilerplate code. Example.