https://github.com/google/go-cmp
equality go testing
Score: 36.62801497003031
Last synced: about 11 hours ago
JSON representation
Repository metadata:
Package for comparing Go values in tests
- Host: GitHub
- URL: https://github.com/google/go-cmp
- Owner: google
- License: bsd-3-clause
- Created: 2017-07-07T19:28:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2026-06-18T07:33:22.000Z (2 months ago)
- Last Synced: 2026-08-23T00:59:22.536Z (about 22 hours ago)
- Topics: equality, go, testing
- Language: Go
- Homepage:
- Size: 537 KB
- Stars: 4,675
- Watchers: 30
- Forks: 239
- Open Issues: 62
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Owner metadata:
- Name: Google
- Login: google
- Email: opensource@google.com
- Kind: organization
- Description: Google ❤️ Open Source
- Website: https://opensource.google/
- Location: United States of America
- Twitter: GoogleOSS
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1342004?v=4
- Repositories: 2871
- Last Synced at: 2026-08-22T00:54:31.773Z
- Profile URL: https://github.com/google
GitHub Events
Total
- Create event: 3
- Delete event: 2
- Fork event: 16
- Issue comment event: 49
- Issues event: 13
- Pull request event: 9
- Pull request review comment event: 2
- Pull request review event: 4
- Push event: 8
- Release event: 1
- Watch event: 327
- Total: 434
Last Year
- Fork event: 2
- Issue comment event: 14
- Issues event: 1
- Pull request event: 1
- Pull request review comment event: 1
- Pull request review event: 1
- Push event: 3
- Watch event: 51
- Total: 74
Committers metadata
Last synced: 5 days ago
Total Commits: 176
Total Committers: 30
Avg Commits per committer: 5.867
Development Distribution Score (DDS): 0.222
Commits in past year: 3
Committers in past year: 3
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.667
| Name | Commits | |
|---|---|---|
| Joe Tsai | j****i@d****t | 137 |
| Christian Muehlhaeuser | m****i@g****m | 3 |
| Damien Neil | n****d | 3 |
| Tobias Klauser | t****r@d****h | 3 |
| 178inaba | 1****t@g****m | 2 |
| Dmitri Shuralyov | s****L@g****m | 2 |
| Ross Light | l****t@g****m | 2 |
| Aoang | a****g@x****m | 2 |
| A. Ishikawa | a****0@g****m | 1 |
| Brad Fitzpatrick | b****d@d****m | 1 |
| Bəxtiyar | b****v@g****m | 1 |
| Caleb Spare | c****e@g****m | 1 |
| Chris Morrow | m****c@o****t | 1 |
| David Crawshaw | c****w@g****g | 1 |
| Ernest Galbrun | e****n@g****m | 1 |
| Fiisio | l****u@1****m | 1 |
| Ikko Ashimine | e****r@g****m | 1 |
| Jake Son | s****n@g****m | 1 |
| Kyle Lemons | k****r@g****m | 1 |
| LMMilewski | l****i@g****m | 1 |
| Md Mushfiqur Rahim | 2****0@g****m | 1 |
| Mitch Burton | m****n@c****m | 1 |
| Roger Peppe | r****e@g****m | 1 |
| Russ Cox | r****c@s****m | 1 |
| Tatsuya Kaneko | c****y@c****g | 1 |
| Will Beason | w****n@g****m | 1 |
| colinnewell | c****l@g****m | 1 |
| ferhat elmas | e****t@g****m | 1 |
| k.nakada | 3****5 | 1 |
| mattdee123 | m****3@g****m | 1 |
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 96
Total pull requests: 79
Average time to close issues: about 2 months
Average time to close pull requests: about 1 month
Total issue authors: 79
Total pull request authors: 31
Average comments per issue: 3.75
Average comments per pull request: 1.81
Merged pull request: 51
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 16
Past year average time to close issues: N/A
Past year average time to close pull requests: 7 days
Past year issue authors: 2
Past year pull request authors: 13
Past year average comments per issue: 0.5
Past year average comments per pull request: 1.25
Past year merged pull request: 3
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- dsnet (9)
- dprotaso (4)
- seehuhn (3)
- rogpeppe (3)
- lmittmann (2)
- pohly (2)
- posener (1)
- future-okada (1)
- pcfreak30 (1)
- liuyucheng11 (1)
- ccoVeille (1)
- Carrotman42 (1)
- Eun (1)
- danielchatfield (1)
- buyology (1)
Top Pull Request Authors
- dsnet (35)
- pgimalac (4)
- neild (3)
- willbeason (3)
- tklauser (3)
- Perfect5th (2)
- Aoang (2)
- dominiquelefevre (2)
- siashish (2)
- manuelarte (2)
- joycebrum (1)
- medyagh (1)
- makoto-developer (1)
- k3forx (1)
- MD-Mushfiqur123 (1)
Top Issue Labels
- enhancement (12)
- reporter (9)
- question (6)
- bug (4)
- waiting-for-info (2)
- help wanted (1)
- performance (1)
Top Pull Request Labels
Package metadata
- Total packages: 22
- Total downloads: unknown
- Total docker downloads: 56,848,354,154
- Total dependent packages: 71,578 (may contain duplicates)
- Total dependent repositories: 201,810 (may contain duplicates)
- Total versions: 191
proxy.golang.org: github.com/google/go-cmp
- Homepage: https://github.com/google/go-cmp
- Documentation: https://pkg.go.dev/github.com/google/go-cmp#section-documentation
- Licenses: bsd-3-clause
- Latest release: v0.7.0 (published over 1 year ago)
- Last Synced: 2026-08-22T10:49:10.325Z (1 day ago)
- Versions: 18
- Dependent Packages: 71,578
- Dependent Repositories: 201,810
- Docker Downloads: 56,848,354,109
-
Rankings:
- Dependent repos count: 0.001%
- Dependent packages count: 0.002%
- Docker downloads count: 0.003%
- Average: 0.61%
- Stargazers count: 1.146%
- Forks count: 1.898%
proxy.golang.org: github.com/Google/Go-cmp
- Homepage: https://github.com/Google/Go-cmp
- Documentation: https://pkg.go.dev/github.com/Google/Go-cmp#section-documentation
- Licenses: bsd-3-clause
- Latest release: v0.2.0 (published over 8 years ago)
- Last Synced: 2026-08-22T10:46:00.334Z (1 day ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.616%
- Average: 4.772%
- Dependent repos count: 4.927%
proxy.golang.org: github.com/google/go-cmp/cmp/cmpopts
Package cmpopts provides common options for the cmp package.
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/cmpopts#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-22T10:46:34.373Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.76%
- Average: 4.92%
- Dependent repos count: 5.08%
proxy.golang.org: github.com/google/go-cmp/cmp/internal/flags
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/internal/flags#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-22T10:41:50.570Z (1 day ago)
- Versions: 16
- Dependent Packages: 0
- Dependent Repositories: 0
- Docker Downloads: 9
-
Rankings:
- Dependent packages count: 4.771%
- Average: 4.931%
- Dependent repos count: 5.092%
proxy.golang.org: github.com/google/go-cmp/cmp/internal/value
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/internal/value#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-22T10:52:11.240Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Docker Downloads: 9
-
Rankings:
- Dependent packages count: 4.771%
- Average: 4.931%
- Dependent repos count: 5.092%
proxy.golang.org: github.com/google/go-cmp/cmp/internal/function
Package function provides functionality for identifying function types.
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/internal/function#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-23T01:03:42.776Z (about 21 hours ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Docker Downloads: 9
-
Rankings:
- Dependent packages count: 4.771%
- Average: 4.931%
- Dependent repos count: 5.092%
proxy.golang.org: github.com/google/go-cmp/cmp
Package cmp determines equality of values. This package is intended to be a more powerful and safer alternative to reflect.DeepEqual for comparing whether two values are semantically equal. It is intended to only be used in tests, as performance is not a goal and it may panic if it cannot compare the values. Its propensity towards panicking means that its unsuitable for production environments where a spurious panic may be fatal. The primary features of cmp are: When the default behavior of equality does not suit the test's needs, custom equality functions can override the equality operation. For example, an equality function may report floats as equal so long as they are within some tolerance of each other. Types with an Equal method (e.g., time.Time.Equal) may use that method to determine equality. This allows package authors to determine the equality operation for the types that they define. If no custom equality functions are used and no Equal method is defined, equality is determined by recursively comparing the primitive kinds on both values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, unexported fields are not compared by default; they result in panics unless suppressed by using an Ignore option (see github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported) or explicitly compared using the Exporter option.
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-22T03:07:50.089Z (2 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Docker Downloads: 9
-
Rankings:
- Dependent packages count: 4.779%
- Average: 4.939%
- Dependent repos count: 5.1%
proxy.golang.org: github.com/google/go-cmp/cmp/internal/diff
Package diff implements an algorithm for producing edit-scripts. The edit-script is a sequence of operations needed to transform one list of symbols into another (or vice-versa). The edits allowed are insertions, deletions, and modifications. The summation of all edits is called the Levenshtein distance as this problem is well-known in computer science. This package prioritizes performance over accuracy. That is, the run time is more important than obtaining a minimal Levenshtein distance.
- Homepage: https://github.com/google/go-cmp
- Status: removed
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/internal/diff#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published 4 months ago)
- Last Synced: 2026-08-22T10:59:27.189Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Docker Downloads: 9
-
Rankings:
- Dependent packages count: 4.779%
- Average: 4.939%
- Dependent repos count: 5.1%
proxy.golang.org: github.com/google/go-Cmp
- Homepage: https://github.com/google/go-Cmp
- Documentation: https://pkg.go.dev/github.com/google/go-Cmp#section-documentation
- Licenses: bsd-3-clause
- Latest release: v0.7.0 (published over 1 year ago)
- Last Synced: 2026-08-22T10:47:52.362Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.047%
- Average: 5.216%
- Dependent repos count: 5.385%
proxy.golang.org: github.com/GOOGLE/go-cmp
- Homepage: https://github.com/GOOGLE/go-cmp
- Documentation: https://pkg.go.dev/github.com/GOOGLE/go-cmp#section-documentation
- Licenses: bsd-3-clause
- Latest release: v0.7.0 (published over 1 year ago)
- Last Synced: 2026-08-22T10:52:54.456Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.309%
- Average: 5.488%
- Dependent repos count: 5.666%
proxy.golang.org: github.com/Google/go-cmp
- Homepage: https://github.com/Google/go-cmp
- Documentation: https://pkg.go.dev/github.com/Google/go-cmp#section-documentation
- Licenses: bsd-3-clause
- Latest release: v0.7.0 (published over 1 year ago)
- Last Synced: 2026-08-22T02:14:07.243Z (2 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.295%
- Average: 6.508%
- Dependent repos count: 6.72%
debian-12: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Documentation: https://packages.debian.org/bookworm/golang-github-google-go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.5.9-1 (published 6 months ago)
- Last Synced: 2026-03-12T23:09:29.723Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-24.10: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.6.0-1 (published 7 months ago)
- Last Synced: 2026-03-08T15:45:39.833Z (6 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Documentation: https://packages.debian.org/bullseye/golang-github-google-go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.5.4-1 (published 6 months ago)
- Last Synced: 2026-03-13T14:33:18.745Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.5.6-1 (published 7 months ago)
- Last Synced: 2026-03-07T03:36:29.719Z (6 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: go-github-com-google-go-cmp
Determine equality of values in Go
- Homepage: https://github.com/google/go-cmp
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/golang-build.scm#n347
- Licenses: bsd-3
- Latest release: 0.7.0 (published 6 months ago)
- Last Synced: 2026-04-07T02:02:14.477Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-13: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Documentation: https://packages.debian.org/trixie/golang-github-google-go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.6.0-1 (published 6 months ago)
- Last Synced: 2026-03-13T20:10:40.519Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.3.1-1 (published 7 months ago)
- Last Synced: 2026-08-17T14:32:33.362Z (6 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Documentation: https://packages.debian.org/buster/golang-github-google-go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.2.0-1 (published 6 months ago)
- Last Synced: 2026-03-13T07:10:49.514Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.5.9-1 (published 6 months ago)
- Last Synced: 2026-03-10T04:13:57.808Z (6 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: golang-github-google-go-cmp
- Homepage: https://github.com/google/go-cmp
- Licenses: bsd-3-clause
- Latest release: 0.5.9-1 (published 6 months ago)
- Last Synced: 2026-03-11T09:03:58.181Z (6 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- actions/checkout v2 composite
- actions/setup-go v2 composite