openCC/LearnTesting.md

9 lines
585 B
Markdown
Raw Normal View History

2023-03-31 10:20:00 +08:00
This page links to resources about testing in Go.
- Read [How to Write Go Code](https://go.dev/doc/code), especially [Testing](https://go.dev/doc/code#Testing)
- Study [Package testing](https://pkg.go.dev/testing)
- Read [Why does Go not have assertions?](https://go.dev/doc/faq#assertions)
- Read [Where is my favorite helper function for testing?](https://go.dev/doc/faq#testing_framework)
- Watch [Testing Techniques](https://talks.golang.org/2014/testing.slide#1)
- Read [TableDrivenTests](TableDrivenTests)
- Read [Using Subtests and Sub-benchmarks](https://go.dev/blog/subtests)