dbtest

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveDir

func ArchiveDir(t *testing.T, dir string) string

func Close

func Close() error

func InitDB

func InitDB(t *testing.T, fixtureFiles []string) string

InitDB initializes testing database.

func InitJavaDB

func InitJavaDB(t *testing.T, cacheDir string)

func NewFakeDB

func NewFakeDB(t *testing.T, dbPath string, opts FakeDBOptions) *oci.Artifact

func NewFakeLayer

func NewFakeLayer(t *testing.T, input string, mediaType types.MediaType) v1.Layer

Types

type FakeDBOptions

type FakeDBOptions struct {
	MediaType types.MediaType
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL