개요
- Go 테스트
- 서브테스트
- 테이블 드리븐
- 테스트 커버리지
- go:cover ignore?
- bpool
- 테스트 파일명, 함수 이름짓기
- func init()
- TestMain()
- main 함수 테스트
- whitebox, blackbox 테스트
- Benchmark
- github actions
- 테스트와 panic()
- mocking http server
- race 함수/패키지
같이 보기
참고
- https://go.dev/blog/cover
- https://pkg.go.dev/testing
- https://go.dev/doc/code#Testing
- https://go.dev/doc/tutorial/add-a-test
- https://github.com/stretchr/testify
- https://github.com/stretchr/testify/issues/497
- https://github.com/stretchr/testify/issues/690
- https://gobyexample.com/testing-and-benchmarking
- http://golang.site/go/article/115-Go-유닛-테스트
- https://blog.jetbrains.com/go/2022/11/22/comprehensive-guide-to-testing-in-go/