{"id":13413875,"url":"https://github.com/google/go-cmp","last_synced_at":"2025-05-13T10:51:26.108Z","repository":{"id":37550168,"uuid":"96570421","full_name":"google/go-cmp","owner":"google","description":"Package for comparing Go values in tests","archived":false,"fork":false,"pushed_at":"2025-02-21T20:41:08.000Z","size":612,"stargazers_count":4387,"open_issues_count":46,"forks_count":211,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-05-05T20:27:06.080Z","etag":null,"topics":["equality","go","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2017-07-07T19:28:22.000Z","updated_at":"2025-05-05T11:33:04.000Z","dependencies_parsed_at":"2023-10-10T19:54:16.595Z","dependency_job_id":"f9fdfe55-1629-467d-8a39-15242dd00262","html_url":"https://github.com/google/go-cmp","commit_stats":{"total_commits":171,"total_committers":29,"mean_commits":5.896551724137931,"dds":"0.20467836257309946","last_synced_commit":"391980c4b2e1cc2c30d2bfae6039815350490495"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fgo-cmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fgo-cmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fgo-cmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fgo-cmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/go-cmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253928986,"owners_count":21985795,"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":["equality","go","testing"],"created_at":"2024-07-30T20:01:51.741Z","updated_at":"2025-05-13T10:51:26.069Z","avatar_url":"https://github.com/google.png","language":"Go","readme":"# Package for equality of Go values\n\n[![GoDev](https://img.shields.io/static/v1?label=godev\u0026message=reference\u0026color=00add8)][godev]\n[![Build Status](https://github.com/google/go-cmp/actions/workflows/test.yml/badge.svg?branch=master)][actions]\n\nThis package is intended to be a more powerful and safer alternative to\n`reflect.DeepEqual` for comparing whether two values are semantically equal.\n\nThe primary features of `cmp` are:\n\n* When the default behavior of equality does not suit the needs of the test,\n  custom equality functions can override the equality operation.\n  For example, an equality function may report floats as equal so long as they\n  are within some tolerance of each other.\n\n* Types that have an `Equal` method may use that method to determine equality.\n  This allows package authors to determine the equality operation for the types\n  that they define.\n\n* If no custom equality functions are used and no `Equal` method is defined,\n  equality is determined by recursively comparing the primitive kinds on both\n  values, much like `reflect.DeepEqual`. Unlike `reflect.DeepEqual`, unexported\n  fields are not compared by default; they result in panics unless suppressed\n  by using an `Ignore` option (see `cmpopts.IgnoreUnexported`) or explicitly\n  compared using the `AllowUnexported` option.\n\nSee the [documentation][godev] for more information.\n\nThis is not an official Google product.\n\n[godev]: https://pkg.go.dev/github.com/google/go-cmp/cmp\n[actions]: https://github.com/google/go-cmp/actions\n\n## Install\n\n```\ngo get -u github.com/google/go-cmp/cmp\n```\n\n## License\n\nBSD - See [LICENSE][license] file\n\n[license]: https://github.com/google/go-cmp/blob/master/LICENSE\n","funding_links":[],"categories":["Template Engines","Testing","Go","测试","Unit Tests","测试相关`测试库和测试数据集生成库`","Repositories","Testing Frameworks","测试相关","Programming"],"sub_categories":["Testing Frameworks","HTTP客户端","HTTP Clients","交流","查询语","Advanced Console UIs","Go"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fgo-cmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fgo-cmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fgo-cmp/lists"}