package
1.5.35
Repository: https://github.com/quay/claircore.git
Documentation: pkg.go.dev

# Functions

CacheDir reports a directory for caching test data and creates it if necessary.
DBSetup queues setup and teardown for a postgres engine instance.
NeedDB is like Skip, except that the test will run if the needed binaries have been fetched.
NewDB generates a unique database for use in integration tests.
NewPersistentDB creates a database for use in integration tests.
PackageCacheDir reports a directory for caching per-package test data and creates it if necessary.
Skip will skip the current test or benchmark if this package was built without the "integration" build tag unless the "CI" environment variable is defined and the "short" flag is not provided.

# Constants

EnvPGConnString is the environment variable examined for a DSN for a pre-existing database engine.
EnvPGVersion is the environment variable examined for the version of PostgreSQL used if an embedded binary would be used.

# Structs

DB is a handle for connecting to and cleaning up a test database.
Engine is a helper for managing a postgres engine.