https://github.com/google/go-cmp
equality go testing
Score: 36.58712260412981
Last synced: about 18 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2026-03-10T22:00:54.000Z (3 months ago)
- Last Synced: 2026-06-16T00:04:14.315Z (5 days ago)
- Topics: equality, go, testing
- Language: Go
- Homepage:
- Size: 600 KB
- Stars: 4,646
- Watchers: 30
- Forks: 225
- Open Issues: 58
-
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: 2823
- Last Synced at: 2026-05-16T16:05:42.907Z
- Profile URL: https://github.com/google
GitHub Events
Total
- Create event: 3
- Delete event: 2
- Fork event: 15
- Issue comment event: 48
- Issues event: 13
- Pull request event: 9
- Pull request review comment event: 2
- Pull request review event: 4
- Push event: 7
- Release event: 1
- Watch event: 325
- Total: 429
Last Year
- Fork event: 3
- Issue comment event: 15
- Issues event: 4
- Pull request event: 1
- Pull request review comment event: 1
- Pull request review event: 1
- Push event: 2
- Watch event: 93
- Total: 120
Committers metadata
Last synced: 11 days ago
Total Commits: 175
Total Committers: 29
Avg Commits per committer: 6.034
Development Distribution Score (DDS): 0.217
Commits in past year: 2
Committers in past year: 2
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.5
| 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 |
| 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: about 1 month ago
Total issues: 96
Total pull requests: 72
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: 24
Average comments per issue: 3.75
Average comments per pull request: 1.88
Merged pull request: 50
Bot issues: 0
Bot pull requests: 0
Past year issues: 5
Past year pull requests: 9
Past year average time to close issues: N/A
Past year average time to close pull requests: 3 days
Past year issue authors: 5
Past year pull request authors: 6
Past year average comments per issue: 0.6
Past year average comments per pull request: 1.33
Past year merged pull request: 2
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)
- tklauser (3)
- willbeason (3)
- neild (3)
- manuelarte (2)
- Perfect5th (2)
- Aoang (2)
- dominiquelefevre (2)
- siashish (2)
- joycebrum (1)
- medyagh (1)
- k3forx (1)
- eltociear (1)
- MukundaKatta (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: 21
- Total downloads: unknown
- Total docker downloads: 56,848,354,109
- Total dependent packages: 71,578 (may contain duplicates)
- Total dependent repositories: 201,810 (may contain duplicates)
- Total versions: 189
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-06-15T03:02:53.860Z (6 days 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/cmp/cmpopts
Package cmpopts provides common options for the cmp package.
- Homepage: https://github.com/google/go-cmp
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp/cmpopts#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published about 1 month ago)
- Last Synced: 2026-06-13T05:24:26.960Z (8 days 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/value
- Homepage: https://github.com/google/go-cmp
- 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 about 1 month ago)
- Last Synced: 2026-06-13T05:24:25.642Z (8 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.771%
- Average: 4.931%
- Dependent repos count: 5.092%
proxy.golang.org: github.com/google/go-cmp/cmp/internal/flags
- Homepage: https://github.com/google/go-cmp
- 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 about 1 month ago)
- Last Synced: 2026-06-13T05:24:26.647Z (8 days ago)
- Versions: 16
- Dependent Packages: 0
- Dependent Repositories: 0
-
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
- 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 about 1 month ago)
- Last Synced: 2026-06-13T05:24:25.862Z (8 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.771%
- Average: 4.931%
- Dependent repos count: 5.092%
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
- 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 about 1 month ago)
- Last Synced: 2026-06-13T05:24:26.122Z (8 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.779%
- Average: 4.939%
- Dependent repos count: 5.1%
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
- Documentation: https://pkg.go.dev/github.com/google/go-cmp/cmp#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.7.0 (published about 1 month ago)
- Last Synced: 2026-06-13T05:24:25.907Z (8 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
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-06-13T05:24:27.434Z (8 days 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-06-13T05:24:27.126Z (8 days 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-06-13T05:24:25.837Z (8 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.295%
- Average: 6.508%
- Dependent repos count: 6.72%
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 4 months ago)
- Last Synced: 2026-03-07T03:36:29.719Z (4 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 4 months ago)
- Last Synced: 2026-04-07T02:02:14.477Z (2 months 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 4 months ago)
- Last Synced: 2026-03-13T07:10:49.514Z (3 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 4 months ago)
- Last Synced: 2026-03-08T02:57:46.177Z (3 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 4 months ago)
- Last Synced: 2026-03-13T20:10:40.519Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
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 4 months ago)
- Last Synced: 2026-03-12T23:09:29.723Z (3 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 4 months ago)
- Last Synced: 2026-03-10T04:13:57.808Z (3 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 4 months ago)
- Last Synced: 2026-03-11T09:03:58.181Z (3 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 4 months ago)
- Last Synced: 2026-03-13T14:33:18.745Z (3 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 4 months ago)
- Last Synced: 2026-03-08T15:45:39.833Z (3 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