{"id":15793334,"url":"https://github.com/pinzolo/tagt","last_synced_at":"2025-03-31T19:21:20.636Z","repository":{"id":144203218,"uuid":"140530608","full_name":"pinzolo/tagt","owner":"pinzolo","description":"tagt is test helper that adds tags to error message.","archived":false,"fork":false,"pushed_at":"2018-07-11T22:32:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-23T14:15:59.644Z","etag":null,"topics":["golang","testing"],"latest_commit_sha":null,"homepage":null,"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/pinzolo.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":"2018-07-11T06:20:48.000Z","updated_at":"2018-07-11T22:32:08.000Z","dependencies_parsed_at":"2023-06-25T22:55:14.061Z","dependency_job_id":null,"html_url":"https://github.com/pinzolo/tagt","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/pinzolo%2Ftagt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinzolo%2Ftagt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinzolo%2Ftagt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinzolo%2Ftagt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinzolo","download_url":"https://codeload.github.com/pinzolo/tagt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523769,"owners_count":20791448,"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":"2024-10-04T23:10:39.331Z","updated_at":"2025-03-31T19:21:20.590Z","avatar_url":"https://github.com/pinzolo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tagt: Friend of table driven tests\ntagt is test helper that prints tags with original error message.\n\n## Usage\n\n```go\ntestdata := []struct{\n\tid  int\n\texists bool\n\ttag string\n}{\n\t{1, true, \"valid user\"},\n\t{9, false, \"unknown user\"},\n}\nfor _, data := range testdata {\n\ttt := tagt.New(t, data.tag)\n\tuser := repo.FindByID(data.id)\n\tif d.exists \u0026\u0026 user == nil {\n\t\tt.Errorf(\"user should be found by id is %d\", data.id)\n\t\t// =\u003e user should be found by id is 1\n\t\ttt.Errorf(\"user should be found by id is %d\", data.id)\n\t\t// =\u003e [valid user] user should be found by id is 1\n\t} else if !d.exists \u0026\u0026 user != nil {\n\t\tt.Errorf(\"user should not be found by id is %d\", data.id)\n\t\t// =\u003e user should not be found by id is 9\n\t\ttt.Errorf(\"user should not be found by id is %d\", data.id)\n\t\t// =\u003e [unknown user] user should not be found by id is 9\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinzolo%2Ftagt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinzolo%2Ftagt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinzolo%2Ftagt/lists"}