mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-22 21:15:18 -05:00
[PR #1694] [MERGED] fix(deps): update module github.com/cweill/gotests to v1.8.0 #1683
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-vikunja/vikunja/pull/1694
Author: @renovate[bot]
Created: 10/21/2025
Status: ✅ Merged
Merged: 10/21/2025
Merged by: @kolaente
Base:
main← Head:renovate/github.com-cweill-gotests-1.x📝 Commits (1)
1d69c12fix(deps): update module github.com/cweill/gotests to v1.8.0📊 Changes
2 files changed (+12 additions, -4 deletions)
View changed files
📝
go.mod(+4 -4)📝
go.sum(+8 -0)📄 Description
This PR contains the following updates:
v1.6.0->v1.8.0Release Notes
cweill/gotests (github.com/cweill/gotests)
v1.8.0: - Full Go Generics SupportCompare Source
🎉 Full Go Generics Support
This release adds complete support for Go generics (type parameters), enabling
goteststo generate tests for generic functions and methods on generic types.✨ Key Features
🔧 Generic Functions: Generate tests for functions with type parameters
🏗️ Generic Types: Support for methods on generic types
🎯 All Constraint Types:
any,comparable, union types (int64 | float64), approximation (~int)🧠 Smart Type Mapping: Intelligent defaults for type instantiation
any→intcomparable→string🔄 Multiple Type Parameters: Handles functions like
Pair[T, U any]📊 Test Coverage
🔧 Technical Improvements
Parser Enhancements:
parseTypeDecls()extracts type parameters from type declarationsparseTypeParams()parses AST field listsextractBaseTypeName()handles receiver typesTemplate Functions:
TypeArgs- generates concrete type arguments for callsFieldType- substitutes type parameters in field declarationsReceiverType- substitutes type parameters in receiver instantiationsModel Updates:
TypeParamstructTypeParamsfield toFunctionIsGeneric(),HasGenericReceiver()📚 Documentation
Added comprehensive "Go Generics Support" section to README with:
🐛 Fixes
Closes #165
📦 Installation
🙏 Credits
🤖 Developed with assistance from Claude Code
Full Changelog: https://github.com/cweill/gotests/compare/v1.7.0...v1.8.0
v1.7.4Compare Source
What's New in v1.7.4
This release fixes two important bugs that improve test correctness and restore broken functionality.
Bug Fixes
🐛 Fixed wantErr Test Logic (PR #169)
When a test expects an error (
tt.wantErr == true), gotests now correctly skips result validation instead of checking potentially undefined return values.Before:
After:
This prevents false test failures and ensures tests behave correctly when expecting errors.
Thanks to @arifmahmudrana for identifying this issue!
🐛 Fixed -template_params Flag (Issue #149)
The
-template_paramsflag was defined but never actually used due to a bug from PR #90. This flag now works correctly!Usage:
This is useful when calling gotests from other tools with custom templates.
Thanks to @butuzov for identifying this bug and @cweill for the fix suggestion!
Installation
Full Changelog: https://github.com/cweill/gotests/compare/v1.7.3...v1.7.4
v1.7.3Compare Source
What's New in v1.7.3
This is a security update that addresses multiple CVEs by updating dependencies.
Security Fixes
🔒 Updated golang.org/x/tools to fix CVEs
Updated
golang.org/x/toolsfrom v0.0.0-20191109212701 (November 2019) to v0.38.0 (latest) to address multiple security vulnerabilities:Changes
golang.org/x/toolsfrom 2019 version to v0.38.0golang.org/x/modv0.29.0,golang.org/x/syncv0.17.0All tests pass with the updated dependencies.
Installation
Important Note
We recommend all users update to this version to ensure you have the latest security fixes.
Full Changelog: https://github.com/cweill/gotests/compare/v1.7.2...v1.7.3
Thanks to @testwill for identifying these security vulnerabilities!
v1.7.2Compare Source
What's New in v1.7.2
This is a small cleanup release with code quality improvements and documentation updates.
Improvements
🧹 Code Cleanup
generateTest()by removing redundant type conversion. Thanks to @fengxuway!📚 Documentation
Installation
Full Changelog: https://github.com/cweill/gotests/compare/v1.7.1...v1.7.2
v1.7.1Compare Source
What's New in v1.7.1
This release adds two highly-requested features to improve the gotests experience.
New Features
🧪 go-cmp Support (
-use_go_cmp)Generate tests using google/go-cmp instead of
reflect.DeepEqualfor better test assertions and diff output.Generated tests will use
cmp.Equal()for comparisons andcmp.Diff()in error messages, providing much clearer output when tests fail.Example output:
Resolves #155 (thanks to @butuzov for the original PR!)
📋 Version Information (
-version)Check which version of gotests you're running:
This helps with troubleshooting and verifying you have the latest release.
Resolves #133
Housekeeping
Installation
Full Changelog: https://github.com/cweill/gotests/compare/v1.7.0...v1.7.1
v1.7.0: - Major Modernization ReleaseCompare Source
v1.7.0 - Major Modernization Release
After 5 years since v1.6.0, we're excited to release v1.7.0 with major improvements and modernizations! 🎉
✨ New Features
Recursive Directory Support
You can now generate tests for entire directory trees using the
...pattern:This will recursively generate tests for all Go files in the
pkgdirectory and its subdirectories. Fixes #186.Cleaner Generated Code
Generated tests now use Go 1.22+ loop variable scoping, eliminating the need for the
tt := ttshadowing pattern. Tests are now cleaner and more readable.Better Error Handling
Subtests with return values now use
t.Fatalf()instead oft.Errorf() + return, providing clearer test failure semantics and preventing misleading output. Thanks to PR #184.🔧 Improvements
BREAKING: Minimum Go Version
Dependency Reduction
embedpackage (PR #181)go generateneededBug Fixes
Template Improvements
t.Parallel()placement at top-level test functions (fixes #188)tparallellinter requirementsDocumentation & Installation
go installinstead of deprecatedgo get(PR #180)-namedflag for map-based table tests (PR #185)📦 CI/CD Updates
📊 Statistics
🙏 Thanks
Special thanks to the contributors whose PRs were integrated in this release:
And to everyone who reported issues and helped maintain this project!
📝 Installation
🔗 Full Changelog
See CHANGELOG.md for complete details.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.