mocks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 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 ConfigMockingArgs

type ConfigMockingArgs struct {
	Config       *prefabProto.Config
	ConfigKey    string
	ConfigExists bool
}

type ContextMocking

type ContextMocking struct {
	Value               interface{}
	ContextPropertyName string
	Exists              bool
}

type MockConfigStoreGetter

type MockConfigStoreGetter struct {
	mock.Mock
}

func NewMockConfigStoreGetter

func NewMockConfigStoreGetter(args []ConfigMockingArgs) *MockConfigStoreGetter

func (*MockConfigStoreGetter) GetConfig

func (m *MockConfigStoreGetter) GetConfig(key string) (*prefabProto.Config, bool)

func (*MockConfigStoreGetter) GetContextValue added in v0.0.4

func (m *MockConfigStoreGetter) GetContextValue(propertyName string) (interface{}, bool)

func (*MockConfigStoreGetter) GetProjectEnvID added in v0.0.4

func (m *MockConfigStoreGetter) GetProjectEnvID() int64

func (*MockConfigStoreGetter) Keys added in v0.0.4

func (m *MockConfigStoreGetter) Keys() []string

type MockContextGetter

type MockContextGetter struct {
	mock.Mock
}

func NewMockContext

func NewMockContext(contextPropertyName string, contextValue interface{}, contextExistsValue bool) *MockContextGetter

func NewMockContextWithMultipleValues

func NewMockContextWithMultipleValues(mockings []ContextMocking) *MockContextGetter

func (*MockContextGetter) GetContextValue

func (m *MockContextGetter) GetContextValue(propertyName string) (interface{}, bool)

type MockProjectEnvIDSupplier

type MockProjectEnvIDSupplier struct {
	mock.Mock
}

func NewMockProjectEnvIDSupplier

func NewMockProjectEnvIDSupplier(envID int64) *MockProjectEnvIDSupplier

func (*MockProjectEnvIDSupplier) GetProjectEnvID

func (m *MockProjectEnvIDSupplier) GetProjectEnvID() int64

Jump to

Keyboard shortcuts

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