mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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