- Use real dependency instead mock
- Write unit test after everything done
- Use
reflect.DeepEqual
instead ofcmp.Diff
- Custom template test generator
- Mock stdlib non interface
- Test related with file generation
- Utilize build tags for testing
Clean Code make unit testing easier