A collection of Go testing examples and patterns. From basic unit tests to parallel execution, mocks, and temp files.
- Unit tests — basic tests, error/panic handling
- Assertions — using
testify/assertfor cleaner checks - Mocks — simple dependency isolation
- Parallel tests — speed up test execution
- Temp files — working with filesystem in tests
- More to come — this repo grows as I explore new patterns
git clone https://github.com/EvgeniiIvanov/go-testing.git
cd go-testing/even
go test -v .