Technologies: Go, gin, golang-migrate/migrate, JWT, PostgreSQL, Docker compose, logrus, Heroku, GitHub Actions, Swagger, websocket.
-
Updated
Mar 28, 2023 - Go
Technologies: Go, gin, golang-migrate/migrate, JWT, PostgreSQL, Docker compose, logrus, Heroku, GitHub Actions, Swagger, websocket.
gmm(go-mysql-mocker) is a simple but useful tool to mock mysql server in Go project, it is especially useful in unit testing. This tool uses dolthub/go-mysql-server as memory server and gorm to auto create table and init data.
An example of mocking golang function
Golang repository testing by mocking database query
An example of golang testing by mocking external dependencies
Add a description, image, and links to the go-mocking topic page so that developers can more easily learn about it.
To associate your repository with the go-mocking topic, visit your repo's landing page and select "manage topics."