app

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommand

type MockCommand struct {
	mock.Mock
}

MockCommand is an autogenerated mock type for the Command type

func NewMockCommand

func NewMockCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCommand

NewMockCommand creates a new instance of MockCommand. 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 (*MockCommand) EXPECT

func (_m *MockCommand) EXPECT() *MockCommand_Expecter

func (*MockCommand) IsRunning

func (_m *MockCommand) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*MockCommand) ProcessPid

func (_m *MockCommand) ProcessPid() int

ProcessPid provides a mock function with given fields:

func (*MockCommand) ProcessSignal

func (_m *MockCommand) ProcessSignal(sig os.Signal) error

ProcessSignal provides a mock function with given fields: sig

func (*MockCommand) Run

func (_m *MockCommand) Run() error

Run provides a mock function with given fields:

func (*MockCommand) SetStderr

func (_m *MockCommand) SetStderr(stdout io.Writer)

SetStderr provides a mock function with given fields: stdout

func (*MockCommand) SetStdout

func (_m *MockCommand) SetStdout(stdout io.Writer)

SetStdout provides a mock function with given fields: stdout

func (*MockCommand) Start

func (_m *MockCommand) Start() error

Start provides a mock function with given fields:

func (*MockCommand) StderrPipe

func (_m *MockCommand) StderrPipe() (io.ReadCloser, error)

StderrPipe provides a mock function with given fields:

func (*MockCommand) StdoutPipe

func (_m *MockCommand) StdoutPipe() (io.ReadCloser, error)

StdoutPipe provides a mock function with given fields:

func (*MockCommand) String

func (_m *MockCommand) String() string

String provides a mock function with given fields:

func (*MockCommand) Wait

func (_m *MockCommand) Wait() error

Wait provides a mock function with given fields:

type MockCommand_Expecter

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

func (*MockCommand_Expecter) IsRunning

IsRunning is a helper method to define mock.On call

func (*MockCommand_Expecter) ProcessPid

ProcessPid is a helper method to define mock.On call

func (*MockCommand_Expecter) ProcessSignal

func (_e *MockCommand_Expecter) ProcessSignal(sig interface{}) *MockCommand_ProcessSignal_Call

ProcessSignal is a helper method to define mock.On call

  • sig os.Signal

func (*MockCommand_Expecter) Run

Run is a helper method to define mock.On call

func (*MockCommand_Expecter) SetStderr

func (_e *MockCommand_Expecter) SetStderr(stdout interface{}) *MockCommand_SetStderr_Call

SetStderr is a helper method to define mock.On call

  • stdout io.Writer

func (*MockCommand_Expecter) SetStdout

func (_e *MockCommand_Expecter) SetStdout(stdout interface{}) *MockCommand_SetStdout_Call

SetStdout is a helper method to define mock.On call

  • stdout io.Writer

func (*MockCommand_Expecter) Start

Start is a helper method to define mock.On call

func (*MockCommand_Expecter) StderrPipe

StderrPipe is a helper method to define mock.On call

func (*MockCommand_Expecter) StdoutPipe

StdoutPipe is a helper method to define mock.On call

func (*MockCommand_Expecter) String

String is a helper method to define mock.On call

func (*MockCommand_Expecter) Wait

Wait is a helper method to define mock.On call

type MockCommand_IsRunning_Call

type MockCommand_IsRunning_Call struct {
	*mock.Call
}

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

func (*MockCommand_IsRunning_Call) Return

func (*MockCommand_IsRunning_Call) Run

func (*MockCommand_IsRunning_Call) RunAndReturn

func (_c *MockCommand_IsRunning_Call) RunAndReturn(run func() bool) *MockCommand_IsRunning_Call

type MockCommand_ProcessPid_Call

type MockCommand_ProcessPid_Call struct {
	*mock.Call
}

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

func (*MockCommand_ProcessPid_Call) Return

func (*MockCommand_ProcessPid_Call) Run

func (*MockCommand_ProcessPid_Call) RunAndReturn

func (_c *MockCommand_ProcessPid_Call) RunAndReturn(run func() int) *MockCommand_ProcessPid_Call

type MockCommand_ProcessSignal_Call

type MockCommand_ProcessSignal_Call struct {
	*mock.Call
}

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

func (*MockCommand_ProcessSignal_Call) Return

func (*MockCommand_ProcessSignal_Call) Run

func (*MockCommand_ProcessSignal_Call) RunAndReturn

type MockCommand_Run_Call

type MockCommand_Run_Call struct {
	*mock.Call
}

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

func (*MockCommand_Run_Call) Return

func (*MockCommand_Run_Call) Run

func (_c *MockCommand_Run_Call) Run(run func()) *MockCommand_Run_Call

func (*MockCommand_Run_Call) RunAndReturn

func (_c *MockCommand_Run_Call) RunAndReturn(run func() error) *MockCommand_Run_Call

type MockCommand_SetStderr_Call

type MockCommand_SetStderr_Call struct {
	*mock.Call
}

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

func (*MockCommand_SetStderr_Call) Return

func (*MockCommand_SetStderr_Call) Run

func (*MockCommand_SetStderr_Call) RunAndReturn

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

type MockCommand_SetStdout_Call

type MockCommand_SetStdout_Call struct {
	*mock.Call
}

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

func (*MockCommand_SetStdout_Call) Return

func (*MockCommand_SetStdout_Call) Run

func (*MockCommand_SetStdout_Call) RunAndReturn

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

type MockCommand_Start_Call

type MockCommand_Start_Call struct {
	*mock.Call
}

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

func (*MockCommand_Start_Call) Return

func (*MockCommand_Start_Call) Run

func (_c *MockCommand_Start_Call) Run(run func()) *MockCommand_Start_Call

func (*MockCommand_Start_Call) RunAndReturn

func (_c *MockCommand_Start_Call) RunAndReturn(run func() error) *MockCommand_Start_Call

type MockCommand_StderrPipe_Call

type MockCommand_StderrPipe_Call struct {
	*mock.Call
}

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

func (*MockCommand_StderrPipe_Call) Return

func (*MockCommand_StderrPipe_Call) Run

func (*MockCommand_StderrPipe_Call) RunAndReturn

type MockCommand_StdoutPipe_Call

type MockCommand_StdoutPipe_Call struct {
	*mock.Call
}

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

func (*MockCommand_StdoutPipe_Call) Return

func (*MockCommand_StdoutPipe_Call) Run

func (*MockCommand_StdoutPipe_Call) RunAndReturn

type MockCommand_String_Call

type MockCommand_String_Call struct {
	*mock.Call
}

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

func (*MockCommand_String_Call) Return

func (*MockCommand_String_Call) Run

func (_c *MockCommand_String_Call) Run(run func()) *MockCommand_String_Call

func (*MockCommand_String_Call) RunAndReturn

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

type MockCommand_Wait_Call

type MockCommand_Wait_Call struct {
	*mock.Call
}

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

func (*MockCommand_Wait_Call) Return

func (*MockCommand_Wait_Call) Run

func (_c *MockCommand_Wait_Call) Run(run func()) *MockCommand_Wait_Call

func (*MockCommand_Wait_Call) RunAndReturn

func (_c *MockCommand_Wait_Call) RunAndReturn(run func() error) *MockCommand_Wait_Call

type MockFile

type MockFile struct {
	mock.Mock
}

MockFile is an autogenerated mock type for the File type

func NewMockFile

func NewMockFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFile

NewMockFile creates a new instance of MockFile. 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 (*MockFile) Close

func (_m *MockFile) Close() error

Close provides a mock function with given fields:

func (*MockFile) EXPECT

func (_m *MockFile) EXPECT() *MockFile_Expecter

func (*MockFile) Name

func (_m *MockFile) Name() string

Name provides a mock function with given fields:

func (*MockFile) Read

func (_m *MockFile) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*MockFile) ReadAt

func (_m *MockFile) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*MockFile) Readdir

func (_m *MockFile) Readdir(count int) ([]fs.FileInfo, error)

Readdir provides a mock function with given fields: count

func (*MockFile) Readdirnames

func (_m *MockFile) Readdirnames(n int) ([]string, error)

Readdirnames provides a mock function with given fields: n

func (*MockFile) Seek

func (_m *MockFile) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*MockFile) Stat

func (_m *MockFile) Stat() (fs.FileInfo, error)

Stat provides a mock function with given fields:

func (*MockFile) Sync

func (_m *MockFile) Sync() error

Sync provides a mock function with given fields:

func (*MockFile) Truncate

func (_m *MockFile) Truncate(size int64) error

Truncate provides a mock function with given fields: size

func (*MockFile) Write

func (_m *MockFile) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

func (*MockFile) WriteAt

func (_m *MockFile) WriteAt(p []byte, off int64) (int, error)

WriteAt provides a mock function with given fields: p, off

func (*MockFile) WriteString

func (_m *MockFile) WriteString(s string) (int, error)

WriteString provides a mock function with given fields: s

type MockFile_Close_Call

type MockFile_Close_Call struct {
	*mock.Call
}

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

func (*MockFile_Close_Call) Return

func (*MockFile_Close_Call) Run

func (_c *MockFile_Close_Call) Run(run func()) *MockFile_Close_Call

func (*MockFile_Close_Call) RunAndReturn

func (_c *MockFile_Close_Call) RunAndReturn(run func() error) *MockFile_Close_Call

type MockFile_Expecter

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

func (*MockFile_Expecter) Close

Close is a helper method to define mock.On call

func (*MockFile_Expecter) Name

Name is a helper method to define mock.On call

func (*MockFile_Expecter) Read

func (_e *MockFile_Expecter) Read(p interface{}) *MockFile_Read_Call

Read is a helper method to define mock.On call

  • p []byte

func (*MockFile_Expecter) ReadAt

func (_e *MockFile_Expecter) ReadAt(p interface{}, off interface{}) *MockFile_ReadAt_Call

ReadAt is a helper method to define mock.On call

  • p []byte
  • off int64

func (*MockFile_Expecter) Readdir

func (_e *MockFile_Expecter) Readdir(count interface{}) *MockFile_Readdir_Call

Readdir is a helper method to define mock.On call

  • count int

func (*MockFile_Expecter) Readdirnames

func (_e *MockFile_Expecter) Readdirnames(n interface{}) *MockFile_Readdirnames_Call

Readdirnames is a helper method to define mock.On call

  • n int

func (*MockFile_Expecter) Seek

func (_e *MockFile_Expecter) Seek(offset interface{}, whence interface{}) *MockFile_Seek_Call

Seek is a helper method to define mock.On call

  • offset int64
  • whence int

func (*MockFile_Expecter) Stat

Stat is a helper method to define mock.On call

func (*MockFile_Expecter) Sync

Sync is a helper method to define mock.On call

func (*MockFile_Expecter) Truncate

func (_e *MockFile_Expecter) Truncate(size interface{}) *MockFile_Truncate_Call

Truncate is a helper method to define mock.On call

  • size int64

func (*MockFile_Expecter) Write

func (_e *MockFile_Expecter) Write(p interface{}) *MockFile_Write_Call

Write is a helper method to define mock.On call

  • p []byte

func (*MockFile_Expecter) WriteAt

func (_e *MockFile_Expecter) WriteAt(p interface{}, off interface{}) *MockFile_WriteAt_Call

WriteAt is a helper method to define mock.On call

  • p []byte
  • off int64

func (*MockFile_Expecter) WriteString

func (_e *MockFile_Expecter) WriteString(s interface{}) *MockFile_WriteString_Call

WriteString is a helper method to define mock.On call

  • s string

type MockFile_Name_Call

type MockFile_Name_Call struct {
	*mock.Call
}

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

func (*MockFile_Name_Call) Return

func (_c *MockFile_Name_Call) Return(_a0 string) *MockFile_Name_Call

func (*MockFile_Name_Call) Run

func (_c *MockFile_Name_Call) Run(run func()) *MockFile_Name_Call

func (*MockFile_Name_Call) RunAndReturn

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

type MockFile_ReadAt_Call

type MockFile_ReadAt_Call struct {
	*mock.Call
}

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

func (*MockFile_ReadAt_Call) Return

func (_c *MockFile_ReadAt_Call) Return(n int, err error) *MockFile_ReadAt_Call

func (*MockFile_ReadAt_Call) Run

func (_c *MockFile_ReadAt_Call) Run(run func(p []byte, off int64)) *MockFile_ReadAt_Call

func (*MockFile_ReadAt_Call) RunAndReturn

func (_c *MockFile_ReadAt_Call) RunAndReturn(run func([]byte, int64) (int, error)) *MockFile_ReadAt_Call

type MockFile_Read_Call

type MockFile_Read_Call struct {
	*mock.Call
}

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

func (*MockFile_Read_Call) Return

func (_c *MockFile_Read_Call) Return(n int, err error) *MockFile_Read_Call

func (*MockFile_Read_Call) Run

func (_c *MockFile_Read_Call) Run(run func(p []byte)) *MockFile_Read_Call

func (*MockFile_Read_Call) RunAndReturn

func (_c *MockFile_Read_Call) RunAndReturn(run func([]byte) (int, error)) *MockFile_Read_Call

type MockFile_Readdir_Call

type MockFile_Readdir_Call struct {
	*mock.Call
}

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

func (*MockFile_Readdir_Call) Return

func (*MockFile_Readdir_Call) Run

func (_c *MockFile_Readdir_Call) Run(run func(count int)) *MockFile_Readdir_Call

func (*MockFile_Readdir_Call) RunAndReturn

func (_c *MockFile_Readdir_Call) RunAndReturn(run func(int) ([]fs.FileInfo, error)) *MockFile_Readdir_Call

type MockFile_Readdirnames_Call

type MockFile_Readdirnames_Call struct {
	*mock.Call
}

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

func (*MockFile_Readdirnames_Call) Return

func (*MockFile_Readdirnames_Call) Run

func (*MockFile_Readdirnames_Call) RunAndReturn

func (_c *MockFile_Readdirnames_Call) RunAndReturn(run func(int) ([]string, error)) *MockFile_Readdirnames_Call

type MockFile_Seek_Call

type MockFile_Seek_Call struct {
	*mock.Call
}

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

func (*MockFile_Seek_Call) Return

func (_c *MockFile_Seek_Call) Return(_a0 int64, _a1 error) *MockFile_Seek_Call

func (*MockFile_Seek_Call) Run

func (_c *MockFile_Seek_Call) Run(run func(offset int64, whence int)) *MockFile_Seek_Call

func (*MockFile_Seek_Call) RunAndReturn

func (_c *MockFile_Seek_Call) RunAndReturn(run func(int64, int) (int64, error)) *MockFile_Seek_Call

type MockFile_Stat_Call

type MockFile_Stat_Call struct {
	*mock.Call
}

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

func (*MockFile_Stat_Call) Return

func (_c *MockFile_Stat_Call) Return(_a0 fs.FileInfo, _a1 error) *MockFile_Stat_Call

func (*MockFile_Stat_Call) Run

func (_c *MockFile_Stat_Call) Run(run func()) *MockFile_Stat_Call

func (*MockFile_Stat_Call) RunAndReturn

func (_c *MockFile_Stat_Call) RunAndReturn(run func() (fs.FileInfo, error)) *MockFile_Stat_Call

type MockFile_Sync_Call

type MockFile_Sync_Call struct {
	*mock.Call
}

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

func (*MockFile_Sync_Call) Return

func (_c *MockFile_Sync_Call) Return(_a0 error) *MockFile_Sync_Call

func (*MockFile_Sync_Call) Run

func (_c *MockFile_Sync_Call) Run(run func()) *MockFile_Sync_Call

func (*MockFile_Sync_Call) RunAndReturn

func (_c *MockFile_Sync_Call) RunAndReturn(run func() error) *MockFile_Sync_Call

type MockFile_Truncate_Call

type MockFile_Truncate_Call struct {
	*mock.Call
}

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

func (*MockFile_Truncate_Call) Return

func (*MockFile_Truncate_Call) Run

func (_c *MockFile_Truncate_Call) Run(run func(size int64)) *MockFile_Truncate_Call

func (*MockFile_Truncate_Call) RunAndReturn

func (_c *MockFile_Truncate_Call) RunAndReturn(run func(int64) error) *MockFile_Truncate_Call

type MockFile_WriteAt_Call

type MockFile_WriteAt_Call struct {
	*mock.Call
}

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

func (*MockFile_WriteAt_Call) Return

func (*MockFile_WriteAt_Call) Run

func (_c *MockFile_WriteAt_Call) Run(run func(p []byte, off int64)) *MockFile_WriteAt_Call

func (*MockFile_WriteAt_Call) RunAndReturn

func (_c *MockFile_WriteAt_Call) RunAndReturn(run func([]byte, int64) (int, error)) *MockFile_WriteAt_Call

type MockFile_WriteString_Call

type MockFile_WriteString_Call struct {
	*mock.Call
}

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

func (*MockFile_WriteString_Call) Return

func (*MockFile_WriteString_Call) Run

func (*MockFile_WriteString_Call) RunAndReturn

func (_c *MockFile_WriteString_Call) RunAndReturn(run func(string) (int, error)) *MockFile_WriteString_Call

type MockFile_Write_Call

type MockFile_Write_Call struct {
	*mock.Call
}

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

func (*MockFile_Write_Call) Return

func (_c *MockFile_Write_Call) Return(n int, err error) *MockFile_Write_Call

func (*MockFile_Write_Call) Run

func (_c *MockFile_Write_Call) Run(run func(p []byte)) *MockFile_Write_Call

func (*MockFile_Write_Call) RunAndReturn

func (_c *MockFile_Write_Call) RunAndReturn(run func([]byte) (int, error)) *MockFile_Write_Call

type MockFoundation

type MockFoundation struct {
	mock.Mock
}

MockFoundation is an autogenerated mock type for the Foundation type

func NewMockFoundation

func NewMockFoundation(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFoundation

NewMockFoundation creates a new instance of MockFoundation. 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 (*MockFoundation) Chdir

func (_m *MockFoundation) Chdir(_a0 string) error

Chdir provides a mock function with given fields: _a0

func (*MockFoundation) CurrentUser

func (_m *MockFoundation) CurrentUser() (*user.User, error)

CurrentUser provides a mock function with given fields:

func (*MockFoundation) DryRun

func (_m *MockFoundation) DryRun() bool

DryRun provides a mock function with given fields:

func (*MockFoundation) EXPECT

func (*MockFoundation) ExecCommand

func (_m *MockFoundation) ExecCommand(ctx context.Context, name string, args []string) app.Command

ExecCommand provides a mock function with given fields: ctx, name, args

func (*MockFoundation) Fs

func (_m *MockFoundation) Fs() app.Fs

Fs provides a mock function with given fields:

func (*MockFoundation) GenerateUuid

func (_m *MockFoundation) GenerateUuid() string

GenerateUuid provides a mock function with given fields:

func (*MockFoundation) Getwd

func (_m *MockFoundation) Getwd() (string, error)

Getwd provides a mock function with given fields:

func (*MockFoundation) HttpClient

func (_m *MockFoundation) HttpClient() app.HttpClient

HttpClient provides a mock function with given fields:

func (*MockFoundation) Logger

func (_m *MockFoundation) Logger() *zap.SugaredLogger

Logger provides a mock function with given fields:

func (*MockFoundation) LookupEnvVar

func (_m *MockFoundation) LookupEnvVar(key string) (string, bool)

LookupEnvVar provides a mock function with given fields: key

func (*MockFoundation) User

func (_m *MockFoundation) User(username string) (*user.User, error)

User provides a mock function with given fields: username

func (*MockFoundation) UserGroup

func (_m *MockFoundation) UserGroup(u *user.User) (*user.Group, error)

UserGroup provides a mock function with given fields: u

func (*MockFoundation) UserHomeDir

func (_m *MockFoundation) UserHomeDir() (string, error)

UserHomeDir provides a mock function with given fields:

func (*MockFoundation) VegetaAttacker

func (_m *MockFoundation) VegetaAttacker() app.VegetaAttacker

VegetaAttacker provides a mock function with given fields:

func (*MockFoundation) VegetaMetrics

func (_m *MockFoundation) VegetaMetrics() app.VegetaMetrics

VegetaMetrics provides a mock function with given fields:

type MockFoundation_Chdir_Call

type MockFoundation_Chdir_Call struct {
	*mock.Call
}

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

func (*MockFoundation_Chdir_Call) Return

func (*MockFoundation_Chdir_Call) Run

func (*MockFoundation_Chdir_Call) RunAndReturn

func (_c *MockFoundation_Chdir_Call) RunAndReturn(run func(string) error) *MockFoundation_Chdir_Call

type MockFoundation_CurrentUser_Call

type MockFoundation_CurrentUser_Call struct {
	*mock.Call
}

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

func (*MockFoundation_CurrentUser_Call) Return

func (*MockFoundation_CurrentUser_Call) Run

func (*MockFoundation_CurrentUser_Call) RunAndReturn

type MockFoundation_DryRun_Call

type MockFoundation_DryRun_Call struct {
	*mock.Call
}

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

func (*MockFoundation_DryRun_Call) Return

func (*MockFoundation_DryRun_Call) Run

func (*MockFoundation_DryRun_Call) RunAndReturn

func (_c *MockFoundation_DryRun_Call) RunAndReturn(run func() bool) *MockFoundation_DryRun_Call

type MockFoundation_ExecCommand_Call

type MockFoundation_ExecCommand_Call struct {
	*mock.Call
}

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

func (*MockFoundation_ExecCommand_Call) Return

func (*MockFoundation_ExecCommand_Call) Run

func (*MockFoundation_ExecCommand_Call) RunAndReturn

type MockFoundation_Expecter

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

func (*MockFoundation_Expecter) Chdir

func (_e *MockFoundation_Expecter) Chdir(_a0 interface{}) *MockFoundation_Chdir_Call

Chdir is a helper method to define mock.On call

  • _a0 string

func (*MockFoundation_Expecter) CurrentUser

CurrentUser is a helper method to define mock.On call

func (*MockFoundation_Expecter) DryRun

DryRun is a helper method to define mock.On call

func (*MockFoundation_Expecter) ExecCommand

func (_e *MockFoundation_Expecter) ExecCommand(ctx interface{}, name interface{}, args interface{}) *MockFoundation_ExecCommand_Call

ExecCommand is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • args []string

func (*MockFoundation_Expecter) Fs

Fs is a helper method to define mock.On call

func (*MockFoundation_Expecter) GenerateUuid

GenerateUuid is a helper method to define mock.On call

func (*MockFoundation_Expecter) Getwd

Getwd is a helper method to define mock.On call

func (*MockFoundation_Expecter) HttpClient

HttpClient is a helper method to define mock.On call

func (*MockFoundation_Expecter) Logger

Logger is a helper method to define mock.On call

func (*MockFoundation_Expecter) LookupEnvVar

func (_e *MockFoundation_Expecter) LookupEnvVar(key interface{}) *MockFoundation_LookupEnvVar_Call

LookupEnvVar is a helper method to define mock.On call

  • key string

func (*MockFoundation_Expecter) User

func (_e *MockFoundation_Expecter) User(username interface{}) *MockFoundation_User_Call

User is a helper method to define mock.On call

  • username string

func (*MockFoundation_Expecter) UserGroup

func (_e *MockFoundation_Expecter) UserGroup(u interface{}) *MockFoundation_UserGroup_Call

UserGroup is a helper method to define mock.On call

  • u *user.User

func (*MockFoundation_Expecter) UserHomeDir

UserHomeDir is a helper method to define mock.On call

func (*MockFoundation_Expecter) VegetaAttacker

VegetaAttacker is a helper method to define mock.On call

func (*MockFoundation_Expecter) VegetaMetrics

VegetaMetrics is a helper method to define mock.On call

type MockFoundation_Fs_Call

type MockFoundation_Fs_Call struct {
	*mock.Call
}

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

func (*MockFoundation_Fs_Call) Return

func (*MockFoundation_Fs_Call) Run

func (_c *MockFoundation_Fs_Call) Run(run func()) *MockFoundation_Fs_Call

func (*MockFoundation_Fs_Call) RunAndReturn

func (_c *MockFoundation_Fs_Call) RunAndReturn(run func() app.Fs) *MockFoundation_Fs_Call

type MockFoundation_GenerateUuid_Call

type MockFoundation_GenerateUuid_Call struct {
	*mock.Call
}

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

func (*MockFoundation_GenerateUuid_Call) Return

func (*MockFoundation_GenerateUuid_Call) Run

func (*MockFoundation_GenerateUuid_Call) RunAndReturn

type MockFoundation_Getwd_Call

type MockFoundation_Getwd_Call struct {
	*mock.Call
}

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

func (*MockFoundation_Getwd_Call) Return

func (*MockFoundation_Getwd_Call) Run

func (*MockFoundation_Getwd_Call) RunAndReturn

func (_c *MockFoundation_Getwd_Call) RunAndReturn(run func() (string, error)) *MockFoundation_Getwd_Call

type MockFoundation_HttpClient_Call

type MockFoundation_HttpClient_Call struct {
	*mock.Call
}

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

func (*MockFoundation_HttpClient_Call) Return

func (*MockFoundation_HttpClient_Call) Run

func (*MockFoundation_HttpClient_Call) RunAndReturn

type MockFoundation_Logger_Call

type MockFoundation_Logger_Call struct {
	*mock.Call
}

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

func (*MockFoundation_Logger_Call) Return

func (*MockFoundation_Logger_Call) Run

func (*MockFoundation_Logger_Call) RunAndReturn

type MockFoundation_LookupEnvVar_Call

type MockFoundation_LookupEnvVar_Call struct {
	*mock.Call
}

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

func (*MockFoundation_LookupEnvVar_Call) Return

func (*MockFoundation_LookupEnvVar_Call) Run

func (*MockFoundation_LookupEnvVar_Call) RunAndReturn

type MockFoundation_UserGroup_Call

type MockFoundation_UserGroup_Call struct {
	*mock.Call
}

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

func (*MockFoundation_UserGroup_Call) Return

func (*MockFoundation_UserGroup_Call) Run

func (*MockFoundation_UserGroup_Call) RunAndReturn

type MockFoundation_UserHomeDir_Call

type MockFoundation_UserHomeDir_Call struct {
	*mock.Call
}

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

func (*MockFoundation_UserHomeDir_Call) Return

func (*MockFoundation_UserHomeDir_Call) Run

func (*MockFoundation_UserHomeDir_Call) RunAndReturn

type MockFoundation_User_Call

type MockFoundation_User_Call struct {
	*mock.Call
}

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

func (*MockFoundation_User_Call) Return

func (*MockFoundation_User_Call) Run

func (_c *MockFoundation_User_Call) Run(run func(username string)) *MockFoundation_User_Call

func (*MockFoundation_User_Call) RunAndReturn

func (_c *MockFoundation_User_Call) RunAndReturn(run func(string) (*user.User, error)) *MockFoundation_User_Call

type MockFoundation_VegetaAttacker_Call

type MockFoundation_VegetaAttacker_Call struct {
	*mock.Call
}

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

func (*MockFoundation_VegetaAttacker_Call) Return

func (*MockFoundation_VegetaAttacker_Call) Run

func (*MockFoundation_VegetaAttacker_Call) RunAndReturn

type MockFoundation_VegetaMetrics_Call

type MockFoundation_VegetaMetrics_Call struct {
	*mock.Call
}

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

func (*MockFoundation_VegetaMetrics_Call) Return

func (*MockFoundation_VegetaMetrics_Call) Run

func (*MockFoundation_VegetaMetrics_Call) RunAndReturn

type MockFs

type MockFs struct {
	mock.Mock
}

MockFs is an autogenerated mock type for the Fs type

func NewMockFs

func NewMockFs(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFs

NewMockFs creates a new instance of MockFs. 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 (*MockFs) Chmod

func (_m *MockFs) Chmod(name string, mode fs.FileMode) error

Chmod provides a mock function with given fields: name, mode

func (*MockFs) Chown

func (_m *MockFs) Chown(name string, uid int, gid int) error

Chown provides a mock function with given fields: name, uid, gid

func (*MockFs) Chtimes

func (_m *MockFs) Chtimes(name string, atime time.Time, mtime time.Time) error

Chtimes provides a mock function with given fields: name, atime, mtime

func (*MockFs) Create

func (_m *MockFs) Create(name string) (afero.File, error)

Create provides a mock function with given fields: name

func (*MockFs) EXPECT

func (_m *MockFs) EXPECT() *MockFs_Expecter

func (*MockFs) Mkdir

func (_m *MockFs) Mkdir(name string, perm fs.FileMode) error

Mkdir provides a mock function with given fields: name, perm

func (*MockFs) MkdirAll

func (_m *MockFs) MkdirAll(path string, perm fs.FileMode) error

MkdirAll provides a mock function with given fields: path, perm

func (*MockFs) Name

func (_m *MockFs) Name() string

Name provides a mock function with given fields:

func (*MockFs) Open

func (_m *MockFs) Open(name string) (afero.File, error)

Open provides a mock function with given fields: name

func (*MockFs) OpenFile

func (_m *MockFs) OpenFile(name string, flag int, perm fs.FileMode) (afero.File, error)

OpenFile provides a mock function with given fields: name, flag, perm

func (*MockFs) Remove

func (_m *MockFs) Remove(name string) error

Remove provides a mock function with given fields: name

func (*MockFs) RemoveAll

func (_m *MockFs) RemoveAll(path string) error

RemoveAll provides a mock function with given fields: path

func (*MockFs) Rename

func (_m *MockFs) Rename(oldname string, newname string) error

Rename provides a mock function with given fields: oldname, newname

func (*MockFs) Stat

func (_m *MockFs) Stat(name string) (fs.FileInfo, error)

Stat provides a mock function with given fields: name

type MockFs_Chmod_Call

type MockFs_Chmod_Call struct {
	*mock.Call
}

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

func (*MockFs_Chmod_Call) Return

func (_c *MockFs_Chmod_Call) Return(_a0 error) *MockFs_Chmod_Call

func (*MockFs_Chmod_Call) Run

func (_c *MockFs_Chmod_Call) Run(run func(name string, mode fs.FileMode)) *MockFs_Chmod_Call

func (*MockFs_Chmod_Call) RunAndReturn

func (_c *MockFs_Chmod_Call) RunAndReturn(run func(string, fs.FileMode) error) *MockFs_Chmod_Call

type MockFs_Chown_Call

type MockFs_Chown_Call struct {
	*mock.Call
}

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

func (*MockFs_Chown_Call) Return

func (_c *MockFs_Chown_Call) Return(_a0 error) *MockFs_Chown_Call

func (*MockFs_Chown_Call) Run

func (_c *MockFs_Chown_Call) Run(run func(name string, uid int, gid int)) *MockFs_Chown_Call

func (*MockFs_Chown_Call) RunAndReturn

func (_c *MockFs_Chown_Call) RunAndReturn(run func(string, int, int) error) *MockFs_Chown_Call

type MockFs_Chtimes_Call

type MockFs_Chtimes_Call struct {
	*mock.Call
}

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

func (*MockFs_Chtimes_Call) Return

func (*MockFs_Chtimes_Call) Run

func (_c *MockFs_Chtimes_Call) Run(run func(name string, atime time.Time, mtime time.Time)) *MockFs_Chtimes_Call

func (*MockFs_Chtimes_Call) RunAndReturn

func (_c *MockFs_Chtimes_Call) RunAndReturn(run func(string, time.Time, time.Time) error) *MockFs_Chtimes_Call

type MockFs_Create_Call

type MockFs_Create_Call struct {
	*mock.Call
}

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

func (*MockFs_Create_Call) Return

func (_c *MockFs_Create_Call) Return(_a0 afero.File, _a1 error) *MockFs_Create_Call

func (*MockFs_Create_Call) Run

func (_c *MockFs_Create_Call) Run(run func(name string)) *MockFs_Create_Call

func (*MockFs_Create_Call) RunAndReturn

func (_c *MockFs_Create_Call) RunAndReturn(run func(string) (afero.File, error)) *MockFs_Create_Call

type MockFs_Expecter

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

func (*MockFs_Expecter) Chmod

func (_e *MockFs_Expecter) Chmod(name interface{}, mode interface{}) *MockFs_Chmod_Call

Chmod is a helper method to define mock.On call

  • name string
  • mode fs.FileMode

func (*MockFs_Expecter) Chown

func (_e *MockFs_Expecter) Chown(name interface{}, uid interface{}, gid interface{}) *MockFs_Chown_Call

Chown is a helper method to define mock.On call

  • name string
  • uid int
  • gid int

func (*MockFs_Expecter) Chtimes

func (_e *MockFs_Expecter) Chtimes(name interface{}, atime interface{}, mtime interface{}) *MockFs_Chtimes_Call

Chtimes is a helper method to define mock.On call

  • name string
  • atime time.Time
  • mtime time.Time

func (*MockFs_Expecter) Create

func (_e *MockFs_Expecter) Create(name interface{}) *MockFs_Create_Call

Create is a helper method to define mock.On call

  • name string

func (*MockFs_Expecter) Mkdir

func (_e *MockFs_Expecter) Mkdir(name interface{}, perm interface{}) *MockFs_Mkdir_Call

Mkdir is a helper method to define mock.On call

  • name string
  • perm fs.FileMode

func (*MockFs_Expecter) MkdirAll

func (_e *MockFs_Expecter) MkdirAll(path interface{}, perm interface{}) *MockFs_MkdirAll_Call

MkdirAll is a helper method to define mock.On call

  • path string
  • perm fs.FileMode

func (*MockFs_Expecter) Name

func (_e *MockFs_Expecter) Name() *MockFs_Name_Call

Name is a helper method to define mock.On call

func (*MockFs_Expecter) Open

func (_e *MockFs_Expecter) Open(name interface{}) *MockFs_Open_Call

Open is a helper method to define mock.On call

  • name string

func (*MockFs_Expecter) OpenFile

func (_e *MockFs_Expecter) OpenFile(name interface{}, flag interface{}, perm interface{}) *MockFs_OpenFile_Call

OpenFile is a helper method to define mock.On call

  • name string
  • flag int
  • perm fs.FileMode

func (*MockFs_Expecter) Remove

func (_e *MockFs_Expecter) Remove(name interface{}) *MockFs_Remove_Call

Remove is a helper method to define mock.On call

  • name string

func (*MockFs_Expecter) RemoveAll

func (_e *MockFs_Expecter) RemoveAll(path interface{}) *MockFs_RemoveAll_Call

RemoveAll is a helper method to define mock.On call

  • path string

func (*MockFs_Expecter) Rename

func (_e *MockFs_Expecter) Rename(oldname interface{}, newname interface{}) *MockFs_Rename_Call

Rename is a helper method to define mock.On call

  • oldname string
  • newname string

func (*MockFs_Expecter) Stat

func (_e *MockFs_Expecter) Stat(name interface{}) *MockFs_Stat_Call

Stat is a helper method to define mock.On call

  • name string

type MockFs_MkdirAll_Call

type MockFs_MkdirAll_Call struct {
	*mock.Call
}

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

func (*MockFs_MkdirAll_Call) Return

func (*MockFs_MkdirAll_Call) Run

func (_c *MockFs_MkdirAll_Call) Run(run func(path string, perm fs.FileMode)) *MockFs_MkdirAll_Call

func (*MockFs_MkdirAll_Call) RunAndReturn

func (_c *MockFs_MkdirAll_Call) RunAndReturn(run func(string, fs.FileMode) error) *MockFs_MkdirAll_Call

type MockFs_Mkdir_Call

type MockFs_Mkdir_Call struct {
	*mock.Call
}

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

func (*MockFs_Mkdir_Call) Return

func (_c *MockFs_Mkdir_Call) Return(_a0 error) *MockFs_Mkdir_Call

func (*MockFs_Mkdir_Call) Run

func (_c *MockFs_Mkdir_Call) Run(run func(name string, perm fs.FileMode)) *MockFs_Mkdir_Call

func (*MockFs_Mkdir_Call) RunAndReturn

func (_c *MockFs_Mkdir_Call) RunAndReturn(run func(string, fs.FileMode) error) *MockFs_Mkdir_Call

type MockFs_Name_Call

type MockFs_Name_Call struct {
	*mock.Call
}

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

func (*MockFs_Name_Call) Return

func (_c *MockFs_Name_Call) Return(_a0 string) *MockFs_Name_Call

func (*MockFs_Name_Call) Run

func (_c *MockFs_Name_Call) Run(run func()) *MockFs_Name_Call

func (*MockFs_Name_Call) RunAndReturn

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

type MockFs_OpenFile_Call

type MockFs_OpenFile_Call struct {
	*mock.Call
}

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

func (*MockFs_OpenFile_Call) Return

func (*MockFs_OpenFile_Call) Run

func (_c *MockFs_OpenFile_Call) Run(run func(name string, flag int, perm fs.FileMode)) *MockFs_OpenFile_Call

func (*MockFs_OpenFile_Call) RunAndReturn

func (_c *MockFs_OpenFile_Call) RunAndReturn(run func(string, int, fs.FileMode) (afero.File, error)) *MockFs_OpenFile_Call

type MockFs_Open_Call

type MockFs_Open_Call struct {
	*mock.Call
}

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

func (*MockFs_Open_Call) Return

func (_c *MockFs_Open_Call) Return(_a0 afero.File, _a1 error) *MockFs_Open_Call

func (*MockFs_Open_Call) Run

func (_c *MockFs_Open_Call) Run(run func(name string)) *MockFs_Open_Call

func (*MockFs_Open_Call) RunAndReturn

func (_c *MockFs_Open_Call) RunAndReturn(run func(string) (afero.File, error)) *MockFs_Open_Call

type MockFs_RemoveAll_Call

type MockFs_RemoveAll_Call struct {
	*mock.Call
}

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

func (*MockFs_RemoveAll_Call) Return

func (*MockFs_RemoveAll_Call) Run

func (_c *MockFs_RemoveAll_Call) Run(run func(path string)) *MockFs_RemoveAll_Call

func (*MockFs_RemoveAll_Call) RunAndReturn

func (_c *MockFs_RemoveAll_Call) RunAndReturn(run func(string) error) *MockFs_RemoveAll_Call

type MockFs_Remove_Call

type MockFs_Remove_Call struct {
	*mock.Call
}

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

func (*MockFs_Remove_Call) Return

func (_c *MockFs_Remove_Call) Return(_a0 error) *MockFs_Remove_Call

func (*MockFs_Remove_Call) Run

func (_c *MockFs_Remove_Call) Run(run func(name string)) *MockFs_Remove_Call

func (*MockFs_Remove_Call) RunAndReturn

func (_c *MockFs_Remove_Call) RunAndReturn(run func(string) error) *MockFs_Remove_Call

type MockFs_Rename_Call

type MockFs_Rename_Call struct {
	*mock.Call
}

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

func (*MockFs_Rename_Call) Return

func (_c *MockFs_Rename_Call) Return(_a0 error) *MockFs_Rename_Call

func (*MockFs_Rename_Call) Run

func (_c *MockFs_Rename_Call) Run(run func(oldname string, newname string)) *MockFs_Rename_Call

func (*MockFs_Rename_Call) RunAndReturn

func (_c *MockFs_Rename_Call) RunAndReturn(run func(string, string) error) *MockFs_Rename_Call

type MockFs_Stat_Call

type MockFs_Stat_Call struct {
	*mock.Call
}

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

func (*MockFs_Stat_Call) Return

func (_c *MockFs_Stat_Call) Return(_a0 fs.FileInfo, _a1 error) *MockFs_Stat_Call

func (*MockFs_Stat_Call) Run

func (_c *MockFs_Stat_Call) Run(run func(name string)) *MockFs_Stat_Call

func (*MockFs_Stat_Call) RunAndReturn

func (_c *MockFs_Stat_Call) RunAndReturn(run func(string) (fs.FileInfo, error)) *MockFs_Stat_Call

type MockHttpClient

type MockHttpClient struct {
	mock.Mock
}

MockHttpClient is an autogenerated mock type for the HttpClient type

func NewMockHttpClient

func NewMockHttpClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHttpClient

NewMockHttpClient creates a new instance of MockHttpClient. 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 (*MockHttpClient) Do

func (_m *MockHttpClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

func (*MockHttpClient) EXPECT

type MockHttpClient_Do_Call

type MockHttpClient_Do_Call struct {
	*mock.Call
}

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

func (*MockHttpClient_Do_Call) Return

func (*MockHttpClient_Do_Call) Run

func (_c *MockHttpClient_Do_Call) Run(run func(req *http.Request)) *MockHttpClient_Do_Call

func (*MockHttpClient_Do_Call) RunAndReturn

func (_c *MockHttpClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHttpClient_Do_Call

type MockHttpClient_Expecter

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

func (*MockHttpClient_Expecter) Do

func (_e *MockHttpClient_Expecter) Do(req interface{}) *MockHttpClient_Do_Call

Do is a helper method to define mock.On call

  • req *http.Request

type MockVegetaAttacker

type MockVegetaAttacker struct {
	mock.Mock
}

MockVegetaAttacker is an autogenerated mock type for the VegetaAttacker type

func NewMockVegetaAttacker

func NewMockVegetaAttacker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVegetaAttacker

NewMockVegetaAttacker creates a new instance of MockVegetaAttacker. 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 (*MockVegetaAttacker) Attack

func (_m *MockVegetaAttacker) Attack(targeter vegeta.Targeter, rate vegeta.ConstantPacer, duration time.Duration, name string) <-chan *vegeta.Result

Attack provides a mock function with given fields: targeter, rate, duration, name

func (*MockVegetaAttacker) EXPECT

type MockVegetaAttacker_Attack_Call

type MockVegetaAttacker_Attack_Call struct {
	*mock.Call
}

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

func (*MockVegetaAttacker_Attack_Call) Return

func (*MockVegetaAttacker_Attack_Call) Run

func (*MockVegetaAttacker_Attack_Call) RunAndReturn

type MockVegetaAttacker_Expecter

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

func (*MockVegetaAttacker_Expecter) Attack

func (_e *MockVegetaAttacker_Expecter) Attack(targeter interface{}, rate interface{}, duration interface{}, name interface{}) *MockVegetaAttacker_Attack_Call

Attack is a helper method to define mock.On call

  • targeter vegeta.Targeter
  • rate vegeta.ConstantPacer
  • duration time.Duration
  • name string

type MockVegetaMetrics

type MockVegetaMetrics struct {
	mock.Mock
}

MockVegetaMetrics is an autogenerated mock type for the VegetaMetrics type

func NewMockVegetaMetrics

func NewMockVegetaMetrics(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVegetaMetrics

NewMockVegetaMetrics creates a new instance of MockVegetaMetrics. 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 (*MockVegetaMetrics) Add

func (_m *MockVegetaMetrics) Add(r *vegeta.Result)

Add provides a mock function with given fields: r

func (*MockVegetaMetrics) Close

func (_m *MockVegetaMetrics) Close()

Close provides a mock function with given fields:

func (*MockVegetaMetrics) EXPECT

func (*MockVegetaMetrics) Metrics

func (_m *MockVegetaMetrics) Metrics() *vegeta.Metrics

Metrics provides a mock function with given fields:

type MockVegetaMetrics_Add_Call

type MockVegetaMetrics_Add_Call struct {
	*mock.Call
}

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

func (*MockVegetaMetrics_Add_Call) Return

func (*MockVegetaMetrics_Add_Call) Run

func (*MockVegetaMetrics_Add_Call) RunAndReturn

type MockVegetaMetrics_Close_Call

type MockVegetaMetrics_Close_Call struct {
	*mock.Call
}

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

func (*MockVegetaMetrics_Close_Call) Return

func (*MockVegetaMetrics_Close_Call) Run

func (*MockVegetaMetrics_Close_Call) RunAndReturn

func (_c *MockVegetaMetrics_Close_Call) RunAndReturn(run func()) *MockVegetaMetrics_Close_Call

type MockVegetaMetrics_Expecter

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

func (*MockVegetaMetrics_Expecter) Add

Add is a helper method to define mock.On call

  • r *vegeta.Result

func (*MockVegetaMetrics_Expecter) Close

Close is a helper method to define mock.On call

func (*MockVegetaMetrics_Expecter) Metrics

Metrics is a helper method to define mock.On call

type MockVegetaMetrics_Metrics_Call

type MockVegetaMetrics_Metrics_Call struct {
	*mock.Call
}

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

func (*MockVegetaMetrics_Metrics_Call) Return

func (*MockVegetaMetrics_Metrics_Call) Run

func (*MockVegetaMetrics_Metrics_Call) RunAndReturn

Jump to

Keyboard shortcuts

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