Skip to content

Bump github.com/corbym/gocrest from 1.2.0 to 1.2.1#119

Merged
davidk merged 1 commit into
mainfrom
dependabot/go_modules/github.com/corbym/gocrest-1.2.1
May 18, 2026
Merged

Bump github.com/corbym/gocrest from 1.2.0 to 1.2.1#119
davidk merged 1 commit into
mainfrom
dependabot/go_modules/github.com/corbym/gocrest-1.2.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 27, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/corbym/gocrest from 1.2.0 to 1.2.1.

Release notes

Sourced from github.com/corbym/gocrest's releases.

v1.2.1 - extended equalTo descriptions

Whats changed

*is/equalto.go — Added diffDescription recursive helper and wired it into EqualTo:

On a mismatch, match.Actual is populated with a breadcrumb-style diff (e.g. .Name: expected , got ) which then.AssertThat already uses in its "but:" output line.

  • Structs: iterates exported fields, recurses into any that differ, producing paths like .FieldName. Slices/Arrays: iterates indices up to the longer length, producing paths like [0], reporting for extra/absent elements.

  • Maps: uses direct MapIndex lookups (O(n) per key, no string-key collisions), sorts diffs alphabetically for deterministic output, producing paths like [key]. Kind guards on each branch prevent panics when the underlying types don't match (possible with any-typed generics).

  • Pointer dereferencing only proceeds when both sides are pointers simultaneously. Falls back to plain %v for primitives or unhandled kinds. matcher_test.go — Added TestEqualToStructShowsDiffOnFailure covering three sub-cases: struct field diff, slice index diff, and map key diff — each asserting that the failure output contains the path/key name plus both expected and actual values.

  • Fix and expand README matcher documentation by @​Copilot in corbym/gocrest#16

  • Remove dead kind-mismatch guards from diffDescription by @​Copilot in corbym/gocrest#17

Full Changelog: corbym/gocrest@v1.2.0...v1.2.1

Commits
  • d0060d0 Merge pull request #17 from corbym/copilot/add-detailed-struct-equality-test
  • d65453b refactor: remove dead kind-mismatch guards from diffDescription
  • ce84244 feat: improve EqualTo error messages for structs, slices, and maps
  • 71bedab Merge pull request #16 from corbym/copilot/improve-readme-clarity-accuracy
  • 5377a09 Improve clarity and accuracy of README
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Apr 27, 2026
@dependabot dependabot Bot requested review from davidk and nitram509 as code owners April 27, 2026 20:08
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Apr 27, 2026
Bumps [github.com/corbym/gocrest](https://github.com/corbym/gocrest) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/corbym/gocrest/releases)
- [Commits](corbym/gocrest@v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/corbym/gocrest
  dependency-version: 1.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/corbym/gocrest-1.2.1 branch from 8e08b08 to b583240 Compare May 18, 2026 15:23
@davidk davidk merged commit 7785da0 into main May 18, 2026
0 of 4 checks passed
@dependabot dependabot Bot deleted the dependabot/go_modules/github.com/corbym/gocrest-1.2.1 branch May 18, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant