{"id":25042700,"url":"https://github.com/juntaki/fix","last_synced_at":"2025-04-14T01:22:24.887Z","repository":{"id":33976734,"uuid":"141769318","full_name":"juntaki/fix","owner":"juntaki","description":"Golden Files Testing library for Go","archived":false,"fork":false,"pushed_at":"2022-05-09T14:48:25.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T15:21:26.314Z","etag":null,"topics":["fixture","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/juntaki.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":"2018-07-21T00:38:30.000Z","updated_at":"2022-05-09T14:48:43.000Z","dependencies_parsed_at":"2022-08-08T18:30:15.828Z","dependency_job_id":null,"html_url":"https://github.com/juntaki/fix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juntaki%2Ffix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juntaki%2Ffix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juntaki%2Ffix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juntaki%2Ffix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juntaki","download_url":"https://codeload.github.com/juntaki/fix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805444,"owners_count":21164332,"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":["fixture","golang","testing"],"created_at":"2025-02-06T04:46:54.366Z","updated_at":"2025-04-14T01:22:24.859Z","avatar_url":"https://github.com/juntaki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fix - Golden Files Testing library for Go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/juntaki/fix.svg)](https://pkg.go.dev/github.com/juntaki/fix)\n\nThis library, like Ruby's [vcr](https://github.com/vcr/vcr), serializes the results once executed and saves them as a file. You can easily write tests to verify that the code outputs the same results as in the past, even after modifying the code.\n\n~~~\ngo get github.com/juntaki/fix\n~~~\n\n## How to use\n\nAppend code like below to your tests. and Run test twice.\n\n~~~\nerr := fix.Fix(\u0026output) // output is dumped to a file.\nif err != nil {\n  t.Fatal(err)\n}\n~~~\n\nFirst test will fail, because juntaki/fix writes serialized data to file.\nFrom the second time, the test will pass, if output is the same as first output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuntaki%2Ffix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuntaki%2Ffix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuntaki%2Ffix/lists"}