{"id":41823875,"url":"https://github.com/kimuson13/gotestgen","last_synced_at":"2026-01-25T08:04:17.984Z","repository":{"id":43945400,"uuid":"457180024","full_name":"kimuson13/gotestgen","owner":"kimuson13","description":"Tool: generate Go test templates","archived":false,"fork":false,"pushed_at":"2022-02-13T11:49:00.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T03:18:39.829Z","etag":null,"topics":["go","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/kimuson13.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":"2022-02-09T02:30:53.000Z","updated_at":"2022-03-17T09:01:44.000Z","dependencies_parsed_at":"2022-08-25T06:50:53.009Z","dependency_job_id":null,"html_url":"https://github.com/kimuson13/gotestgen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kimuson13/gotestgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimuson13%2Fgotestgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimuson13%2Fgotestgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimuson13%2Fgotestgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimuson13%2Fgotestgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimuson13","download_url":"https://codeload.github.com/kimuson13/gotestgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimuson13%2Fgotestgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28748571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T07:58:02.558Z","status":"ssl_error","status_checked_at":"2026-01-25T07:57:57.153Z","response_time":113,"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":["go","testing"],"created_at":"2026-01-25T08:04:11.859Z","updated_at":"2026-01-25T08:04:17.976Z","avatar_url":"https://github.com/kimuson13.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotestgen\n## description\ngenerate Go test templates\n\n## usage\n```go install github.com/kimuson13/gotestgen/cmd/gotestgen@latest```  \n\nafter changing directory you want to generate test files and  \n\n```gotestgen ./...```\n\n## options\n### -p\nadd `t.Parallel()` into some test functions\n### -g\nselect the place that test file is wrote\n#### example\nif you type `tree .`\n```\n$ tree .\n.\n├── hoge\n│   └── hoge.go\n├ go.mod\n├ go.sum\n└ main.go\n```\n```\n$ cat hoge/hoge.go\n\npackage hoge\n\nfunc Hoge() {\n  fmt.Println(\"Hoge\")\n}\n\nfunc hoge() {\n  fmt.Println(\"hoge\")\n}\n```\n```\n$ gotestgen -g=[hoge:hoge]\n```\n```\n$ tree .\n.\n├── hoge\n│   ├── hoge.go\n│   └── hoge_test.go\n├ go.mod\n├ go.sum\n└ main.go\n```\n```\n$ cat hoge/hoge_test.go\n\npackage hoge_test\n\nimport \"testing\"\n\nfunc TestHoge(t *testing.T) {\n  cases := map[string]struct {\n  \n  }{\n    //write test cases below\n  }\n  \n  for testName, tt := range cases {\n\t\ttt := tt\n\t\tt.Run(testName, func(t *testing.T) {\n\t\t\t\n\t\t})\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimuson13%2Fgotestgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimuson13%2Fgotestgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimuson13%2Fgotestgen/lists"}