test

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExpectedErr = errors.New("expected error")
)
View Source
var FileSystem embed.FS

Functions

func MonkeyPatch

func MonkeyPatch[T any](this *T, toThat *T) func()

Types

type Config

type Config struct {
	MeaningOfLife   int
	Cats            []string
	Pi              float64
	Perfection      []int
	BackToTheFuture time.Time
	Secret          string
	Tag             string `json:"TagValue" toml:"TagValue"`
}

type FileOpenerMock

type FileOpenerMock struct {
	mock.Mock
}

func (*FileOpenerMock) Open

func (f *FileOpenerMock) Open(file string) (io.ReadCloser, error)

type SecretManagerMock

type SecretManagerMock struct {
	mock.Mock
}

func (*SecretManagerMock) Prefix

func (manager *SecretManagerMock) Prefix() string

func (*SecretManagerMock) Secret

func (manager *SecretManagerMock) Secret(ctx context.Context, key string) (string, error)

Jump to

Keyboard shortcuts

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