{"id":21036498,"url":"https://github.com/moemoe89/go-unit-test-sql","last_synced_at":"2025-07-05T09:33:57.925Z","repository":{"id":57533180,"uuid":"273444849","full_name":"moemoe89/go-unit-test-sql","owner":"moemoe89","description":"🧪 Mock SQL Test for Redis in Golang for my Medium story material","archived":false,"fork":false,"pushed_at":"2020-06-19T09:00:47.000Z","size":6,"stargazers_count":23,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T05:40:57.945Z","etag":null,"topics":["go","golang","mock","mysql","postgresql","unit-testing"],"latest_commit_sha":null,"homepage":"https://medium.com/@bismobaruno/5af19075e68e","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moemoe89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-19T08:32:34.000Z","updated_at":"2023-12-11T15:42:55.000Z","dependencies_parsed_at":"2022-09-26T18:20:56.044Z","dependency_job_id":null,"html_url":"https://github.com/moemoe89/go-unit-test-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-unit-test-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-unit-test-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-unit-test-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-unit-test-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moemoe89","download_url":"https://codeload.github.com/moemoe89/go-unit-test-sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225358039,"owners_count":17461776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","mock","mysql","postgresql","unit-testing"],"created_at":"2024-11-19T13:20:24.145Z","updated_at":"2024-11-19T13:20:24.838Z","avatar_url":"https://github.com/moemoe89.png","language":"Go","readme":"[![CircleCI](https://circleci.com/gh/moemoe89/go-unit-test-sql.svg?style=svg)](https://circleci.com/gh/moemoe89/go-unit-test-sql)\n[![codecov](https://codecov.io/gh/moemoe89/go-unit-test-sql/branch/master/graph/badge.svg)](https://codecov.io/gh/moemoe89/go-unit-test-sql)\n[![Go Report Card](https://goreportcard.com/badge/github.com/moemoe89/go-unit-test-sql)](https://goreportcard.com/report/github.com/moemoe89/go-unit-test-sql)\n\n# GO-UNIT-TEST-SQL #\n\nExample Mock Unit Test for SQL in Golang\n\n## Directory structure\nYour project directory structure should look like this\n```\n  + your_gopath/\n  |\n  +--+ src/github.com/moemoe89\n  |  |\n  |  +--+ go-unit-test-sql/\n  |     |\n  |     +--+ main.go\n  |        + repository/\n  |        |\n  |        +--+ repository.go\n  |        |\n  |        +--+ mysql\n  |        |  |\n  |        |  +--+ mysql.go\n  |        |     + mysql_test.go\n  |        |\n  |        +--+ postgres\n  |           |\n  |           +--+ postgres.go\n  |              + postgres_test.go\n  |\n  +--+ bin/\n  |  |\n  |  +-- ... executable file\n  |\n  +--+ pkg/\n     |\n     +-- ... all dependency_library required\n\n```\n\n## Setup\n\n* Setup Golang \u003chttps://golang.org\u003e\n* Setup Docker \u003chttps://www.docker.com\u003e\n* Under `$GOPATH`, do the following command :\n```\n$ mkdir -p src/github.com/moemoe89\n$ cd src/github.com/moemoe89\n$ git clone \u003curl\u003e\n$ mv \u003ccloned directory\u003e go-unit-test-sql\n```\n\n## How to Run Test\n```\n$ go test ./...\n```\n\n## License\n\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fgo-unit-test-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoemoe89%2Fgo-unit-test-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fgo-unit-test-sql/lists"}