{"id":26319006,"url":"https://github.com/newmo-oss/testid","last_synced_at":"2025-03-15T15:17:16.743Z","repository":{"id":257784264,"uuid":"856906310","full_name":"newmo-oss/testid","owner":"newmo-oss","description":"testid provides utilities of test id for unit testing of Go","archived":false,"fork":false,"pushed_at":"2025-03-10T06:38:22.000Z","size":5,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T07:29:32.186Z","etag":null,"topics":["golang","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/newmo-oss.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-13T12:39:35.000Z","updated_at":"2025-03-10T06:32:22.000Z","dependencies_parsed_at":"2024-09-20T06:48:27.679Z","dependency_job_id":"e696f6df-b1c1-4651-aa87-13df5d90ea9a","html_url":"https://github.com/newmo-oss/testid","commit_stats":null,"previous_names":["newmo-oss/testid"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newmo-oss%2Ftestid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newmo-oss%2Ftestid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newmo-oss%2Ftestid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newmo-oss%2Ftestid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newmo-oss","download_url":"https://codeload.github.com/newmo-oss/testid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746243,"owners_count":20341204,"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":["golang","testing"],"created_at":"2025-03-15T15:17:16.326Z","updated_at":"2025-03-15T15:17:16.737Z","avatar_url":"https://github.com/newmo-oss.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testid [![Go Reference](https://pkg.go.dev/badge/github.com/newmo-oss/testido.svg)](https://pkg.go.dev/github.com/newmo-oss/testid)[![Go Report Card](https://goreportcard.com/badge/github.com/newmo-oss/testid)](https://goreportcard.com/report/github.com/newmo-oss/testid)\n\ntestid provides utilities of test id for unit testing of Go.\n\n## Usage\n\n```go\npackage a_test\n\nimport (\n\t\"context\"\n\t\"testing\"\n\n\t\"github.com/google/uuid\"\n\t\"github.com/newmo-oss/newmotime\"\n\t\"github.com/newmo-oss/newmotime/newmotimetest\"\n\t\"github.com/newmo-oss/testid\"\n)\n\nfunc Test(t *testing.T) {\n\ttid := uuid.NewString()\n\tctx := testid.WithValue(context.Background(), tid)\n\tnow := newmotime.Now(ctx)\n\tnewmotimetest.SetFixedNow(t, ctx, now)\n}\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewmo-oss%2Ftestid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewmo-oss%2Ftestid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewmo-oss%2Ftestid/lists"}