{"id":17436037,"url":"https://github.com/mcriley821/simplemock","last_synced_at":"2026-02-27T01:01:45.965Z","repository":{"id":257814297,"uuid":"865154309","full_name":"mcriley821/simplemock","owner":"mcriley821","description":"Go simple mock generator","archived":false,"fork":false,"pushed_at":"2025-05-09T02:34:48.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T00:16:07.201Z","etag":null,"topics":["code-generation","code-generator","code-generators","generator","go","golang","golang-cli","golang-generator","golang-testing","golang-tools","mock","mock-generator","mock-generators","mock-testing","test","testing"],"latest_commit_sha":null,"homepage":"","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/mcriley821.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-30T04:29:31.000Z","updated_at":"2024-10-13T05:57:09.000Z","dependencies_parsed_at":"2024-10-08T09:22:06.706Z","dependency_job_id":"ce2a9e34-2127-44da-b51f-e76a6e2c8de1","html_url":"https://github.com/mcriley821/simplemock","commit_stats":null,"previous_names":["mcriley821/simplemock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mcriley821/simplemock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcriley821%2Fsimplemock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcriley821%2Fsimplemock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcriley821%2Fsimplemock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcriley821%2Fsimplemock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcriley821","download_url":"https://codeload.github.com/mcriley821/simplemock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcriley821%2Fsimplemock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29879899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-generation","code-generator","code-generators","generator","go","golang","golang-cli","golang-generator","golang-testing","golang-tools","mock","mock-generator","mock-generators","mock-testing","test","testing"],"created_at":"2024-10-17T10:01:39.526Z","updated_at":"2026-02-27T01:01:45.947Z","avatar_url":"https://github.com/mcriley821.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simplemock\n`simplemock` is a simplistic and opinionated Go mock generator designed to be\nused with [`//go:generate`](https://go.dev/blog/generate) directives. It\ngenerates minimalistic mock implementations for interfaces, making unit tests\nmore clear and descriptive without complicated frameworks and configurations.\n\n## Installation\n```bash\ngo install github.com/mcriley821/simplemock@latest\n```\n\n## Usage\nInvoke `simplemock` with `-help` to get up-to-date usage:\n\n```sh\nsimplemock -help\n```\n\n```go\n//go:generate simplemock -iface {interface} -out {filename}\n```\n\nThe provided `interface` must either be in the same package as the directive,\nor accessible via imported packages.\n\n`simplemock` generates a struct type that implements the provided interface.\nThis struct holds `func` data members named after the corresponding interface\nmethod with a `Func` suffix. In each mock method, the corresponding `func` data\nmember is called if it is non-nil - otherwise `panic` is called.\n\n## Examples\nSee the [end-to-end](./e2e/testdata) test directories for concrete examples of\nthe different ways to utilize `simplemock`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcriley821%2Fsimplemock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcriley821%2Fsimplemock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcriley821%2Fsimplemock/lists"}