Skip to content

Fix package doc comment in sqlitetest - #52

Merged
maragubot merged 1 commit into
mainfrom
garden/fix-sqlitetest-package-doc
Jun 26, 2026
Merged

Fix package doc comment in sqlitetest#52
maragubot merged 1 commit into
mainfrom
garden/fix-sqlitetest-package-doc

Conversation

@maragubot

Copy link
Copy Markdown
Collaborator

What was found

The package doc comment in sqlitetest/database.go read:

// Package sqltest provides testing helpers for the sql package.
package sqlitetest

Both halves are wrong: the package is sqlitetest (not sqltest), and it provides testing helpers for the sqlite package (it imports app/sqlite and returns *sqlite.Database), not "the sql package". The likely cause is a copy/rename that left the doc comment behind.

The sibling helper package gets this right: servicetest/service.go has // Package servicetest provides testing helpers for the service package.

What was fixed

Corrected the doc comment to match reality and the established convention:

// Package sqlitetest provides testing helpers for the sqlite package.

One-line, comment-only change. gofmt -l and go vet ./sqlitetest/ are clean. A repo-wide grep for sqltest confirms no other occurrences of the stale wording.

Review notes

Clean review -- no concerns raised. Two competing reviewers independently confirmed the new comment is accurate, satisfies Go's "Package " doc convention, matches the servicetest sibling, and introduces no new problems.

The doc comment read "Package `sqltest` provides testing helpers for the
`sql` package", but the package is `sqlitetest` and it provides helpers
for the `sqlite` package. Match the convention used by `servicetest`.
@maragubot
maragubot merged commit 76fba0d into main Jun 26, 2026
5 checks passed
@maragubot
maragubot deleted the garden/fix-sqlitetest-package-doc branch June 26, 2026 10:05
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.

1 participant