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
Click to show internal directories.
Click to hide internal directories.