Skip to content

Move test utilities out of runtime packages - #605

Merged
go-jet merged 1 commit into
go-jet:masterfrom
MatthiasGrandl:fix/runtime-test-dependencies
Aug 22, 2026
Merged

Move test utilities out of runtime packages#605
go-jet merged 1 commit into
go-jet:masterfrom
MatthiasGrandl:fix/runtime-test-dependencies

Conversation

@MatthiasGrandl

Copy link
Copy Markdown
Contributor

Summary

  • Rename internal/jet/testutils.go to internal/jet/testutils_test.go.
  • Keep the default dialect used by production debug serialization in utils.go.
  • Remove testing, Testify, and its dependencies from the runtime package closure.

Why

The test utility file was compiled as production code because its name did not end in _test.go. Since it imports testing and Testify, every consumer of the SQL builder also linked Testify and gopkg.in/yaml.v3.

Before this change, go list -deps ./mysql included Testify and gopkg.in/yaml.v3. After this change, neither is present.

Validation

  • go test ./...
  • golangci-lint run --timeout=30m ./...
  • go list -deps ./mysql dependency check

@go-jet

go-jet commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Thanks. LGTM 👍

@go-jet
go-jet merged commit 3f68c5d into go-jet:master Aug 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants