| id | 201 |
|---|---|
| title | Rename internal/testutil to internal/testsymlink |
| status | ✅ |
| summary | Fix the anti-pattern package name. internal/testutil answers "a grab bag"; rename it to internal/testsymlink, which names the question its single symlink.go file answers. |
| model | |
| depends-on |
internal/testutil violated the SRP
naming rule from the architecture hub.
A package named util attracts unrelated
code. The package had one non-test file,
symlink.go, that creates temporary
symlinks for tests. It now lives at
internal/testsymlink,
which signals the narrow scope.
- Create
internal/testsymlink/. - Move
symlink.goand update itspackagedeclaration. - Update all imports referencing
internal/testutil. - Delete
internal/testutil/. - Run
go build ./...andgo test ./....
-
internal/testutil/is gone. -
internal/testsymlink/exists. -
grep -r --include='*.go' 'internal/testutil'returns no results. -
go build ./...clean. -
go test ./...passes. -
go tool golangci-lint runclean.