Documentation
¶
Index ¶
- func ArchiveDir(t *testing.T, dir string) string
- func Close() error
- func InitDB(t *testing.T, fixtureFiles []string) string
- func InitJavaDB(t *testing.T, cacheDir string)
- func InitWithMetadata(t *testing.T, meta metadata.Metadata, createDBFile bool) string
- func NewFakeDB(t *testing.T, dbPath string, opts FakeDBOptions) *oci.Artifact
- func NewFakeLayer(t *testing.T, input string, mediaType types.MediaType) v1.Layer
- type FakeDBOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitJavaDB ¶
func InitWithMetadata ¶ added in v0.68.0
InitWithMetadata initializes a database with optional metadata and DB file creation. If meta is empty, no metadata file is created. If createDBFile is false, no DB file is created (useful for testing "DB not found" scenarios). Returns the dbDir path.
Types ¶
type FakeDBOptions ¶
Click to show internal directories.
Click to hide internal directories.