env

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env interface {
	Get(key string) string
}

func New

func New() Env

func NewWithStubs

func NewWithStubs(stubs Stubs) Env

type MockEnv

type MockEnv struct {
	mock.Mock
}

MockEnv is an autogenerated mock type for the Env type

func NewMockEnv added in v0.3.0

func NewMockEnv(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnv

NewMockEnv creates a new instance of MockEnv. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockEnv) Get

func (_m *MockEnv) Get(key string) string

Get provides a mock function with given fields: key

type Stubs

type Stubs map[string]string

Jump to

Keyboard shortcuts

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