Help us shape the future of Go! Take the 2026 Go Developer Survey

querycover

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Command querycover fails when a statement of the store was never run by the tests behind a coverage profile. `make test-postgres` runs every package's tests on Postgres with the store's coverage recorded, then this, so no query reaches Postgres untested: SQL the two dialects read differently shows up as a failing test, not in production.

A statement is a call of ExecContext, QueryContext or QueryRowContext in the store's non-test files; it counts as run when the coverage block holding its line ran.

go run ./internal/store/querycover -dir internal/store -pkg github.com/TurtleByte-IN/mailrules/internal/store cover.out

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL