mocks

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemMock

type FileSystemMock struct {
	mock.Mock
}

FileSystemMock is an autogenerated mock type for the FileSystem type

func NewFileSystemMock

func NewFileSystemMock(t mockConstructorTestingTNewFileSystemMock) *FileSystemMock

NewFileSystemMock creates a new instance of FileSystemMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FileSystemMock) CreateDirectory

func (_m *FileSystemMock) CreateDirectory(_a0 string, _a1 fs.FileMode) error

CreateDirectory provides a mock function with given fields: _a0, _a1

func (*FileSystemMock) FileExists

func (_m *FileSystemMock) FileExists(_a0 string) bool

FileExists provides a mock function with given fields: _a0

func (*FileSystemMock) ReadFile

func (_m *FileSystemMock) ReadFile(_a0 string) ([]byte, error)

ReadFile provides a mock function with given fields: _a0

func (*FileSystemMock) RemoveDirectory

func (_m *FileSystemMock) RemoveDirectory(_a0 string) error

RemoveDirectory provides a mock function with given fields: _a0

func (*FileSystemMock) WriteFile

func (_m *FileSystemMock) WriteFile(_a0 string, _a1 []byte, _a2 fs.FileMode) error

WriteFile provides a mock function with given fields: _a0, _a1, _a2

type StateManager

type StateManager struct {
	mock.Mock
}

StateManager is an autogenerated mock type for the StateManager type

func NewStateManager

func NewStateManager(t mockConstructorTestingTNewStateManager) *StateManager

NewStateManager creates a new instance of StateManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StateManager) CleanupTechnique

func (_m *StateManager) CleanupTechnique() error

CleanupTechnique provides a mock function with given fields:

func (*StateManager) ExtractTechnique

func (_m *StateManager) ExtractTechnique() error

ExtractTechnique provides a mock function with given fields:

func (*StateManager) GetRootDirectory

func (_m *StateManager) GetRootDirectory() string

GetRootDirectory provides a mock function with given fields:

func (*StateManager) GetTechniqueState

func (_m *StateManager) GetTechniqueState() stratus.AttackTechniqueState

GetTechniqueState provides a mock function with given fields:

func (*StateManager) GetTerraformOutputs

func (_m *StateManager) GetTerraformOutputs() (map[string]string, error)

GetTerraformOutputs provides a mock function with given fields:

func (*StateManager) Initialize

func (_m *StateManager) Initialize()

Initialize provides a mock function with given fields:

func (*StateManager) SetTechniqueState

func (_m *StateManager) SetTechniqueState(_a0 stratus.AttackTechniqueState) error

SetTechniqueState provides a mock function with given fields: _a0

func (*StateManager) WriteTerraformOutputs

func (_m *StateManager) WriteTerraformOutputs(outputs map[string]string) error

WriteTerraformOutputs provides a mock function with given fields: outputs

Jump to

Keyboard shortcuts

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