Documentation
¶
Overview ¶
Package pkgtestguard provides reusable in-package architectural guard checks so high-churn packages enforce their own zero-sqlx / zero-store.GetDB() invariants whenever `go test ./<pkg>` runs locally, without waiting for `go test ./docs`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDir ¶
CheckDir scans non-test Go files directly inside dir and returns violations for direct github.com/jmoiron/sqlx imports, raw *sqlx.DB references, or store.GetDB() calls. Returns an error if dir cannot be read, any file fails to parse, or zero production Go files are scanned (refusing vacuous pass).
Types ¶
This section is empty.