{"modulePath":"github.com/bitechdev/ResolveSpec","version":"v1.3.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package conformance\n\nPackage conformance is the shared behavioural suite every lookup backend must pass. It only uses the store interfaces, so the same cases run against the direct backend on every dialect and against the procedure backend on Postgres. Error messages are not asserted (backends word them differently), only whether an operation succeeds or fails and the values it returns.\n\nThe suite names everything it creates with Env.Prefix and never assumes empty tables, so it can run against a shared database. Env.Cleanup, when set, removes the prefixed rows.\n\n## Functions\n\n```go\nfunc Run(t *testing.T, env Env)\n```\nRun executes the suite.\n\n## Types\n\n```go\ntype Env struct {\n\tProvider *lookup.Provider\n\t// DB and Dialect are used only to seed policy rules, which have no store method.\n\tDB      *sql.DB\n\tDialect dialect.Dialect\n\t// Prefix makes every created name unique to this run.\n\tPrefix string\n\t// Cleanup removes rows whose names start with Prefix. Optional.\n\tCleanup func(t *testing.T)\n}\n```\nEnv is one backend under test.\n\n","path":"github.com/bitechdev/ResolveSpec/pkg/security/lookup/conformance","name":"conformance","synopsis":"Package conformance is the shared behavioural suite every lookup backend must pass.","isRedistributable":true}
