Using tidb-lite to create a TiDB server with mocktikv mode in your application or unit test.
Use tidb-lite to run TiDB in mocktikv mode in Golang code.
Sql mock driver for golang to test database interactions
Another common method is to mock SQL services in the test. At present, the more popular solution is to use go-sqlmock.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
How do you control behaviour in mocked interface ?
5 projects | reddit.com/r/golang | 21 Jan 2022
[HELP] how to test this piece of code?
1 project | reddit.com/r/golang | 29 Dec 2021
[HELP] Testing SQL queries and functions that use SQL queries in Golang.
3 projects | reddit.com/r/golang | 1 Dec 2021
What mocking framework do you prefer?
6 projects | reddit.com/r/golang | 23 Oct 2021
Goreen tea : golang boilerplate for data-intensive microservice
3 projects | dev.to | 11 May 2021