tests

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(t *testing.T) error

func RegisterCIDatabaseFactory

func RegisterCIDatabaseFactory(name string, factory Factory) error

RegisterCIDatabaseFactory registers a storage factory driver by name. If RegisterCIDatabaseFactory is called twice with the same name or if driver is nil, it panics.

Types

type CIDatabase

type CIDatabase interface {
	// Init initializes the database or database file for ci tests
	Init() error
	// DeInit remove the database or database file for ci tests
	DeInit() error
	// GetName get database name
	GetName() enums.Database
}

CIDatabase is the interface for the database in ci tests

var DB CIDatabase

DB is the database for ci tests

type Factory

type Factory interface {
	New() CIDatabase
}

Jump to

Keyboard shortcuts

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