{"id":25014330,"url":"https://github.com/gregoryv/golden","last_synced_at":"2025-10-11T05:08:54.236Z","repository":{"id":57495000,"uuid":"177876428","full_name":"gregoryv/golden","owner":"gregoryv","description":"Go module for golden file testing","archived":false,"fork":false,"pushed_at":"2024-03-22T06:43:11.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T05:13:15.752Z","etag":null,"topics":["go","golang","golden","helper","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/gregoryv.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2019-03-26T22:12:49.000Z","updated_at":"2022-03-29T10:53:11.000Z","dependencies_parsed_at":"2022-08-28T19:50:17.141Z","dependency_job_id":null,"html_url":"https://github.com/gregoryv/golden","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/gregoryv/golden","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fgolden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fgolden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fgolden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fgolden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregoryv","download_url":"https://codeload.github.com/gregoryv/golden/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fgolden/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259967816,"owners_count":22939521,"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","golden","helper","testing"],"created_at":"2025-02-05T07:19:06.653Z","updated_at":"2025-10-11T05:08:49.213Z","avatar_url":"https://github.com/gregoryv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/gregoryv/golden.svg?branch=master)](https://travis-ci.org/gregoryv/golden)\n[![codecov](https://codecov.io/gh/gregoryv/golden/branch/master/graph/badge.svg)](https://codecov.io/gh/gregoryv/golden)\n[![Maintainability](https://api.codeclimate.com/v1/badges/df2736e1ac63580b49d7/maintainability)](https://codeclimate.com/github/gregoryv/golden/maintainability)\n\n[golden](https://godoc.org/github.com/gregoryv/golden) - package defines test helper for working with golden files\n\nGolden files contain expected values within your tests. They are useful\nwhen you want to check more complex outputs. This package makes it easy\nto Save and Load such files within the testdata directory.\n\nSimplest example\n\n    func TestMe(t *testing.T) {\n        got := doSomething()\n        golden.Assert(t, got)\n    }\n\nThe golden file for above test is saved in `testdata/package.TestMe`\nand an entry is added to `testdata/golden.files` which keeps track of\nused files. If you eg. rename a test the golden file will be saved\nunder a new name.\n\nKeep `golden.files` under revision control to quickly spot which files\nare no longer used.\n\nTo update the golden files use\n\n    go test -args -update-golden\n\n\nArticle at [7de.se/golden](https://www.7de.se/golden/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fgolden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregoryv%2Fgolden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fgolden/lists"}