mocks

package
v0.12.7-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaltLogger

type SaltLogger struct {
	mock.Mock
}

SaltLogger is an autogenerated mock type for the saltLogger type

func NewSaltLogger

func NewSaltLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *SaltLogger

NewSaltLogger creates a new instance of SaltLogger. 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 (*SaltLogger) Debug

func (_m *SaltLogger) Debug(msg string, args ...interface{})

Debug provides a mock function with given fields: msg, args

func (*SaltLogger) EXPECT

func (_m *SaltLogger) EXPECT() *SaltLogger_Expecter

func (*SaltLogger) Error

func (_m *SaltLogger) Error(msg string, args ...interface{})

Error provides a mock function with given fields: msg, args

func (*SaltLogger) Fatal

func (_m *SaltLogger) Fatal(msg string, args ...interface{})

Fatal provides a mock function with given fields: msg, args

func (*SaltLogger) Info

func (_m *SaltLogger) Info(msg string, args ...interface{})

Info provides a mock function with given fields: msg, args

func (*SaltLogger) Level

func (_m *SaltLogger) Level() string

Level provides a mock function with given fields:

func (*SaltLogger) Warn

func (_m *SaltLogger) Warn(msg string, args ...interface{})

Warn provides a mock function with given fields: msg, args

func (*SaltLogger) Writer

func (_m *SaltLogger) Writer() io.Writer

Writer provides a mock function with given fields:

type SaltLogger_Debug_Call

type SaltLogger_Debug_Call struct {
	*mock.Call
}

SaltLogger_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'

func (*SaltLogger_Debug_Call) Return

func (*SaltLogger_Debug_Call) Run

func (_c *SaltLogger_Debug_Call) Run(run func(msg string, args ...interface{})) *SaltLogger_Debug_Call

func (*SaltLogger_Debug_Call) RunAndReturn

func (_c *SaltLogger_Debug_Call) RunAndReturn(run func(string, ...interface{})) *SaltLogger_Debug_Call

type SaltLogger_Error_Call

type SaltLogger_Error_Call struct {
	*mock.Call
}

SaltLogger_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*SaltLogger_Error_Call) Return

func (*SaltLogger_Error_Call) Run

func (_c *SaltLogger_Error_Call) Run(run func(msg string, args ...interface{})) *SaltLogger_Error_Call

func (*SaltLogger_Error_Call) RunAndReturn

func (_c *SaltLogger_Error_Call) RunAndReturn(run func(string, ...interface{})) *SaltLogger_Error_Call

type SaltLogger_Expecter

type SaltLogger_Expecter struct {
	// contains filtered or unexported fields
}

func (*SaltLogger_Expecter) Debug

func (_e *SaltLogger_Expecter) Debug(msg interface{}, args ...interface{}) *SaltLogger_Debug_Call

Debug is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*SaltLogger_Expecter) Error

func (_e *SaltLogger_Expecter) Error(msg interface{}, args ...interface{}) *SaltLogger_Error_Call

Error is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*SaltLogger_Expecter) Fatal

func (_e *SaltLogger_Expecter) Fatal(msg interface{}, args ...interface{}) *SaltLogger_Fatal_Call

Fatal is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*SaltLogger_Expecter) Info

func (_e *SaltLogger_Expecter) Info(msg interface{}, args ...interface{}) *SaltLogger_Info_Call

Info is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*SaltLogger_Expecter) Level

Level is a helper method to define mock.On call

func (*SaltLogger_Expecter) Warn

func (_e *SaltLogger_Expecter) Warn(msg interface{}, args ...interface{}) *SaltLogger_Warn_Call

Warn is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*SaltLogger_Expecter) Writer

Writer is a helper method to define mock.On call

type SaltLogger_Fatal_Call

type SaltLogger_Fatal_Call struct {
	*mock.Call
}

SaltLogger_Fatal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatal'

func (*SaltLogger_Fatal_Call) Return

func (*SaltLogger_Fatal_Call) Run

func (_c *SaltLogger_Fatal_Call) Run(run func(msg string, args ...interface{})) *SaltLogger_Fatal_Call

func (*SaltLogger_Fatal_Call) RunAndReturn

func (_c *SaltLogger_Fatal_Call) RunAndReturn(run func(string, ...interface{})) *SaltLogger_Fatal_Call

type SaltLogger_Info_Call

type SaltLogger_Info_Call struct {
	*mock.Call
}

SaltLogger_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*SaltLogger_Info_Call) Return

func (*SaltLogger_Info_Call) Run

func (_c *SaltLogger_Info_Call) Run(run func(msg string, args ...interface{})) *SaltLogger_Info_Call

func (*SaltLogger_Info_Call) RunAndReturn

func (_c *SaltLogger_Info_Call) RunAndReturn(run func(string, ...interface{})) *SaltLogger_Info_Call

type SaltLogger_Level_Call

type SaltLogger_Level_Call struct {
	*mock.Call
}

SaltLogger_Level_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Level'

func (*SaltLogger_Level_Call) Return

func (*SaltLogger_Level_Call) Run

func (_c *SaltLogger_Level_Call) Run(run func()) *SaltLogger_Level_Call

func (*SaltLogger_Level_Call) RunAndReturn

func (_c *SaltLogger_Level_Call) RunAndReturn(run func() string) *SaltLogger_Level_Call

type SaltLogger_Warn_Call

type SaltLogger_Warn_Call struct {
	*mock.Call
}

SaltLogger_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'

func (*SaltLogger_Warn_Call) Return

func (*SaltLogger_Warn_Call) Run

func (_c *SaltLogger_Warn_Call) Run(run func(msg string, args ...interface{})) *SaltLogger_Warn_Call

func (*SaltLogger_Warn_Call) RunAndReturn

func (_c *SaltLogger_Warn_Call) RunAndReturn(run func(string, ...interface{})) *SaltLogger_Warn_Call

type SaltLogger_Writer_Call

type SaltLogger_Writer_Call struct {
	*mock.Call
}

SaltLogger_Writer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Writer'

func (*SaltLogger_Writer_Call) Return

func (*SaltLogger_Writer_Call) Run

func (_c *SaltLogger_Writer_Call) Run(run func()) *SaltLogger_Writer_Call

func (*SaltLogger_Writer_Call) RunAndReturn

func (_c *SaltLogger_Writer_Call) RunAndReturn(run func() io.Writer) *SaltLogger_Writer_Call

Jump to

Keyboard shortcuts

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