{"id":15912404,"url":"https://github.com/brian14708/testexec","last_synced_at":"2025-04-03T02:27:53.614Z","repository":{"id":38356420,"uuid":"447565698","full_name":"brian14708/testexec","owner":"brian14708","description":"Run subprocess tests for Go.","archived":false,"fork":false,"pushed_at":"2025-03-26T14:45:18.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T15:44:29.377Z","etag":null,"topics":["go","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/brian14708.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":"2022-01-13T10:59:03.000Z","updated_at":"2025-03-26T14:45:15.000Z","dependencies_parsed_at":"2023-12-08T02:30:47.515Z","dependency_job_id":"510527ed-ffa4-42e7-a202-6262e330c0a1","html_url":"https://github.com/brian14708/testexec","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/brian14708%2Ftestexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian14708%2Ftestexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian14708%2Ftestexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian14708%2Ftestexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brian14708","download_url":"https://codeload.github.com/brian14708/testexec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246924293,"owners_count":20855705,"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","testing"],"created_at":"2024-10-06T16:04:35.431Z","updated_at":"2025-04-03T02:27:53.586Z","avatar_url":"https://github.com/brian14708.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testexec\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/brian14708/testexec)](https://goreportcard.com/report/github.com/brian14708/testexec)\n[![Go Reference](https://pkg.go.dev/badge/github.com/brian14708/testexec.svg)](https://pkg.go.dev/github.com/brian14708/testexec)\n\nRun subprocess tests for Go.\n\n## How to use\n\nSetup code:\n\n```go\nfunc TestMain(m *testing.M) {\n\ttestexec.Main(m)\n}\n```\n\nAdd subprocess program:\n\n```go\nvar flagProgram = testexec.NewProgram(func(t *testexec.T, in int, out *int) {\n\tvar f = flag.Int(\"data\", 1, \"\")\n\tflag.Parse()\n\t*out = in + *f\n})\n```\n\nAdd test:\n\n```go\nfunc TestFlag(t *testing.T) {\n\tvar i int\n\ttestexec.Run(t, flagProgram, 12, \u0026i, \"--data=123\")\n\tassert.Equal(t, 135, i)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian14708%2Ftestexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrian14708%2Ftestexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian14708%2Ftestexec/lists"}