Repository navigation
test: remove embedded field types from struct literals in cmd/datastore tests - #879
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #879 +/- ##
=======================================
Coverage 81.35% 81.35%
=======================================
Files 247 247
Lines 18881 18881
=======================================
Hits 15360 15360
Misses 3521 3521 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
WilliamBergamin
approved these changes
Nov 30, 2026
WilliamBergamin
left a comment
Contributor
There was a problem hiding this comment.
💯 Thanks @mwbrooks! These are exactly the three spots modernize flags in cmd/datastore, and it runs clean on this branch with the tests still passing.
Nothing to add, looks good 🚀
Member
Author
|
Thanks @zimeg and @WilliamBergamin for the quick reviews! 🙇 |
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog
N/A - internal cleanup with no user-facing changes.
Summary
This pull request removes the embedded field types from struct literals in the
cmd/datastoretests for maintainers, from the Go modernize analyzer. Same behaviour, in the form current Go recommends. It follows #862, and #878 upgraded the linter so it can read this form.cmd/datastore/count_test.go: 2types.SlackYamlliterals setDatastoresdirectly instead of wrapping it inAppManifest: types.AppManifest{...}cmd/datastore/datastore_test.go: 1types.SlackYamlliteral does the same forDisplayInformationandDatastoresTesting
cmd/datastoreno longer reports "embedded field type can be removed from struct literal":go build ./... && go test ./...Requirements