storage

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

func WithEmbedTestData

func WithEmbedTestData(embedStore embed.FS) Option

func WithInputTestDataDir

func WithInputTestDataDir(path string) Option

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(opts ...Option) *Store

func (*Store) LoadExpectations

func (e *Store) LoadExpectations() (pkg.ExpctationReg, error)

func (*Store) LoadStages

func (e *Store) LoadStages() (pkg.StageReg, error)

func (*Store) LoadTestCases

func (e *Store) LoadTestCases() (pkg.TestCasesReg, error)

func (*Store) ReadFile

func (e *Store) ReadFile(filename string) ([]byte, error)

Jump to

Keyboard shortcuts

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