Documentation ¶
Index ¶
- type MockCommand
- func (_m *MockCommand) EXPECT() *MockCommand_Expecter
- func (_m *MockCommand) IsRunning() bool
- func (_m *MockCommand) ProcessPid() int
- func (_m *MockCommand) ProcessSignal(sig os.Signal) error
- func (_m *MockCommand) Run() error
- func (_m *MockCommand) SetStderr(stdout io.Writer)
- func (_m *MockCommand) SetStdout(stdout io.Writer)
- func (_m *MockCommand) Start() error
- func (_m *MockCommand) StderrPipe() (io.ReadCloser, error)
- func (_m *MockCommand) StdoutPipe() (io.ReadCloser, error)
- func (_m *MockCommand) String() string
- func (_m *MockCommand) Wait() error
- type MockCommand_Expecter
- func (_e *MockCommand_Expecter) IsRunning() *MockCommand_IsRunning_Call
- func (_e *MockCommand_Expecter) ProcessPid() *MockCommand_ProcessPid_Call
- func (_e *MockCommand_Expecter) ProcessSignal(sig interface{}) *MockCommand_ProcessSignal_Call
- func (_e *MockCommand_Expecter) Run() *MockCommand_Run_Call
- func (_e *MockCommand_Expecter) SetStderr(stdout interface{}) *MockCommand_SetStderr_Call
- func (_e *MockCommand_Expecter) SetStdout(stdout interface{}) *MockCommand_SetStdout_Call
- func (_e *MockCommand_Expecter) Start() *MockCommand_Start_Call
- func (_e *MockCommand_Expecter) StderrPipe() *MockCommand_StderrPipe_Call
- func (_e *MockCommand_Expecter) StdoutPipe() *MockCommand_StdoutPipe_Call
- func (_e *MockCommand_Expecter) String() *MockCommand_String_Call
- func (_e *MockCommand_Expecter) Wait() *MockCommand_Wait_Call
- type MockCommand_IsRunning_Call
- type MockCommand_ProcessPid_Call
- type MockCommand_ProcessSignal_Call
- func (_c *MockCommand_ProcessSignal_Call) Return(_a0 error) *MockCommand_ProcessSignal_Call
- func (_c *MockCommand_ProcessSignal_Call) Run(run func(sig os.Signal)) *MockCommand_ProcessSignal_Call
- func (_c *MockCommand_ProcessSignal_Call) RunAndReturn(run func(os.Signal) error) *MockCommand_ProcessSignal_Call
- type MockCommand_Run_Call
- type MockCommand_SetStderr_Call
- type MockCommand_SetStdout_Call
- type MockCommand_Start_Call
- type MockCommand_StderrPipe_Call
- func (_c *MockCommand_StderrPipe_Call) Return(_a0 io.ReadCloser, _a1 error) *MockCommand_StderrPipe_Call
- func (_c *MockCommand_StderrPipe_Call) Run(run func()) *MockCommand_StderrPipe_Call
- func (_c *MockCommand_StderrPipe_Call) RunAndReturn(run func() (io.ReadCloser, error)) *MockCommand_StderrPipe_Call
- type MockCommand_StdoutPipe_Call
- func (_c *MockCommand_StdoutPipe_Call) Return(_a0 io.ReadCloser, _a1 error) *MockCommand_StdoutPipe_Call
- func (_c *MockCommand_StdoutPipe_Call) Run(run func()) *MockCommand_StdoutPipe_Call
- func (_c *MockCommand_StdoutPipe_Call) RunAndReturn(run func() (io.ReadCloser, error)) *MockCommand_StdoutPipe_Call
- type MockCommand_String_Call
- type MockCommand_Wait_Call
- type MockFile
- func (_m *MockFile) Close() error
- func (_m *MockFile) EXPECT() *MockFile_Expecter
- func (_m *MockFile) Name() string
- func (_m *MockFile) Read(p []byte) (int, error)
- func (_m *MockFile) ReadAt(p []byte, off int64) (int, error)
- func (_m *MockFile) Readdir(count int) ([]fs.FileInfo, error)
- func (_m *MockFile) Readdirnames(n int) ([]string, error)
- func (_m *MockFile) Seek(offset int64, whence int) (int64, error)
- func (_m *MockFile) Stat() (fs.FileInfo, error)
- func (_m *MockFile) Sync() error
- func (_m *MockFile) Truncate(size int64) error
- func (_m *MockFile) Write(p []byte) (int, error)
- func (_m *MockFile) WriteAt(p []byte, off int64) (int, error)
- func (_m *MockFile) WriteString(s string) (int, error)
- type MockFile_Close_Call
- type MockFile_Expecter
- func (_e *MockFile_Expecter) Close() *MockFile_Close_Call
- func (_e *MockFile_Expecter) Name() *MockFile_Name_Call
- func (_e *MockFile_Expecter) Read(p interface{}) *MockFile_Read_Call
- func (_e *MockFile_Expecter) ReadAt(p interface{}, off interface{}) *MockFile_ReadAt_Call
- func (_e *MockFile_Expecter) Readdir(count interface{}) *MockFile_Readdir_Call
- func (_e *MockFile_Expecter) Readdirnames(n interface{}) *MockFile_Readdirnames_Call
- func (_e *MockFile_Expecter) Seek(offset interface{}, whence interface{}) *MockFile_Seek_Call
- func (_e *MockFile_Expecter) Stat() *MockFile_Stat_Call
- func (_e *MockFile_Expecter) Sync() *MockFile_Sync_Call
- func (_e *MockFile_Expecter) Truncate(size interface{}) *MockFile_Truncate_Call
- func (_e *MockFile_Expecter) Write(p interface{}) *MockFile_Write_Call
- func (_e *MockFile_Expecter) WriteAt(p interface{}, off interface{}) *MockFile_WriteAt_Call
- func (_e *MockFile_Expecter) WriteString(s interface{}) *MockFile_WriteString_Call
- type MockFile_Name_Call
- type MockFile_ReadAt_Call
- type MockFile_Read_Call
- type MockFile_Readdir_Call
- type MockFile_Readdirnames_Call
- type MockFile_Seek_Call
- type MockFile_Stat_Call
- type MockFile_Sync_Call
- type MockFile_Truncate_Call
- type MockFile_WriteAt_Call
- type MockFile_WriteString_Call
- type MockFile_Write_Call
- type MockFoundation
- func (_m *MockFoundation) Chdir(_a0 string) error
- func (_m *MockFoundation) CurrentUser() (*user.User, error)
- func (_m *MockFoundation) DryRun() bool
- func (_m *MockFoundation) EXPECT() *MockFoundation_Expecter
- func (_m *MockFoundation) ExecCommand(ctx context.Context, name string, args []string) app.Command
- func (_m *MockFoundation) Fs() app.Fs
- func (_m *MockFoundation) GenerateUuid() string
- func (_m *MockFoundation) Getwd() (string, error)
- func (_m *MockFoundation) HttpClient() app.HttpClient
- func (_m *MockFoundation) Logger() *zap.SugaredLogger
- func (_m *MockFoundation) LookupEnvVar(key string) (string, bool)
- func (_m *MockFoundation) User(username string) (*user.User, error)
- func (_m *MockFoundation) UserGroup(u *user.User) (*user.Group, error)
- func (_m *MockFoundation) UserHomeDir() (string, error)
- func (_m *MockFoundation) VegetaAttacker() app.VegetaAttacker
- func (_m *MockFoundation) VegetaMetrics() app.VegetaMetrics
- type MockFoundation_Chdir_Call
- type MockFoundation_CurrentUser_Call
- func (_c *MockFoundation_CurrentUser_Call) Return(_a0 *user.User, _a1 error) *MockFoundation_CurrentUser_Call
- func (_c *MockFoundation_CurrentUser_Call) Run(run func()) *MockFoundation_CurrentUser_Call
- func (_c *MockFoundation_CurrentUser_Call) RunAndReturn(run func() (*user.User, error)) *MockFoundation_CurrentUser_Call
- type MockFoundation_DryRun_Call
- type MockFoundation_ExecCommand_Call
- func (_c *MockFoundation_ExecCommand_Call) Return(_a0 app.Command) *MockFoundation_ExecCommand_Call
- func (_c *MockFoundation_ExecCommand_Call) Run(run func(ctx context.Context, name string, args []string)) *MockFoundation_ExecCommand_Call
- func (_c *MockFoundation_ExecCommand_Call) RunAndReturn(run func(context.Context, string, []string) app.Command) *MockFoundation_ExecCommand_Call
- type MockFoundation_Expecter
- func (_e *MockFoundation_Expecter) Chdir(_a0 interface{}) *MockFoundation_Chdir_Call
- func (_e *MockFoundation_Expecter) CurrentUser() *MockFoundation_CurrentUser_Call
- func (_e *MockFoundation_Expecter) DryRun() *MockFoundation_DryRun_Call
- func (_e *MockFoundation_Expecter) ExecCommand(ctx interface{}, name interface{}, args interface{}) *MockFoundation_ExecCommand_Call
- func (_e *MockFoundation_Expecter) Fs() *MockFoundation_Fs_Call
- func (_e *MockFoundation_Expecter) GenerateUuid() *MockFoundation_GenerateUuid_Call
- func (_e *MockFoundation_Expecter) Getwd() *MockFoundation_Getwd_Call
- func (_e *MockFoundation_Expecter) HttpClient() *MockFoundation_HttpClient_Call
- func (_e *MockFoundation_Expecter) Logger() *MockFoundation_Logger_Call
- func (_e *MockFoundation_Expecter) LookupEnvVar(key interface{}) *MockFoundation_LookupEnvVar_Call
- func (_e *MockFoundation_Expecter) User(username interface{}) *MockFoundation_User_Call
- func (_e *MockFoundation_Expecter) UserGroup(u interface{}) *MockFoundation_UserGroup_Call
- func (_e *MockFoundation_Expecter) UserHomeDir() *MockFoundation_UserHomeDir_Call
- func (_e *MockFoundation_Expecter) VegetaAttacker() *MockFoundation_VegetaAttacker_Call
- func (_e *MockFoundation_Expecter) VegetaMetrics() *MockFoundation_VegetaMetrics_Call
- type MockFoundation_Fs_Call
- type MockFoundation_GenerateUuid_Call
- func (_c *MockFoundation_GenerateUuid_Call) Return(_a0 string) *MockFoundation_GenerateUuid_Call
- func (_c *MockFoundation_GenerateUuid_Call) Run(run func()) *MockFoundation_GenerateUuid_Call
- func (_c *MockFoundation_GenerateUuid_Call) RunAndReturn(run func() string) *MockFoundation_GenerateUuid_Call
- type MockFoundation_Getwd_Call
- type MockFoundation_HttpClient_Call
- func (_c *MockFoundation_HttpClient_Call) Return(_a0 app.HttpClient) *MockFoundation_HttpClient_Call
- func (_c *MockFoundation_HttpClient_Call) Run(run func()) *MockFoundation_HttpClient_Call
- func (_c *MockFoundation_HttpClient_Call) RunAndReturn(run func() app.HttpClient) *MockFoundation_HttpClient_Call
- type MockFoundation_Logger_Call
- type MockFoundation_LookupEnvVar_Call
- func (_c *MockFoundation_LookupEnvVar_Call) Return(_a0 string, _a1 bool) *MockFoundation_LookupEnvVar_Call
- func (_c *MockFoundation_LookupEnvVar_Call) Run(run func(key string)) *MockFoundation_LookupEnvVar_Call
- func (_c *MockFoundation_LookupEnvVar_Call) RunAndReturn(run func(string) (string, bool)) *MockFoundation_LookupEnvVar_Call
- type MockFoundation_UserGroup_Call
- func (_c *MockFoundation_UserGroup_Call) Return(_a0 *user.Group, _a1 error) *MockFoundation_UserGroup_Call
- func (_c *MockFoundation_UserGroup_Call) Run(run func(u *user.User)) *MockFoundation_UserGroup_Call
- func (_c *MockFoundation_UserGroup_Call) RunAndReturn(run func(*user.User) (*user.Group, error)) *MockFoundation_UserGroup_Call
- type MockFoundation_UserHomeDir_Call
- func (_c *MockFoundation_UserHomeDir_Call) Return(_a0 string, _a1 error) *MockFoundation_UserHomeDir_Call
- func (_c *MockFoundation_UserHomeDir_Call) Run(run func()) *MockFoundation_UserHomeDir_Call
- func (_c *MockFoundation_UserHomeDir_Call) RunAndReturn(run func() (string, error)) *MockFoundation_UserHomeDir_Call
- type MockFoundation_User_Call
- func (_c *MockFoundation_User_Call) Return(_a0 *user.User, _a1 error) *MockFoundation_User_Call
- func (_c *MockFoundation_User_Call) Run(run func(username string)) *MockFoundation_User_Call
- func (_c *MockFoundation_User_Call) RunAndReturn(run func(string) (*user.User, error)) *MockFoundation_User_Call
- type MockFoundation_VegetaAttacker_Call
- func (_c *MockFoundation_VegetaAttacker_Call) Return(_a0 app.VegetaAttacker) *MockFoundation_VegetaAttacker_Call
- func (_c *MockFoundation_VegetaAttacker_Call) Run(run func()) *MockFoundation_VegetaAttacker_Call
- func (_c *MockFoundation_VegetaAttacker_Call) RunAndReturn(run func() app.VegetaAttacker) *MockFoundation_VegetaAttacker_Call
- type MockFoundation_VegetaMetrics_Call
- func (_c *MockFoundation_VegetaMetrics_Call) Return(_a0 app.VegetaMetrics) *MockFoundation_VegetaMetrics_Call
- func (_c *MockFoundation_VegetaMetrics_Call) Run(run func()) *MockFoundation_VegetaMetrics_Call
- func (_c *MockFoundation_VegetaMetrics_Call) RunAndReturn(run func() app.VegetaMetrics) *MockFoundation_VegetaMetrics_Call
- type MockFs
- func (_m *MockFs) Chmod(name string, mode fs.FileMode) error
- func (_m *MockFs) Chown(name string, uid int, gid int) error
- func (_m *MockFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (_m *MockFs) Create(name string) (afero.File, error)
- func (_m *MockFs) EXPECT() *MockFs_Expecter
- func (_m *MockFs) Mkdir(name string, perm fs.FileMode) error
- func (_m *MockFs) MkdirAll(path string, perm fs.FileMode) error
- func (_m *MockFs) Name() string
- func (_m *MockFs) Open(name string) (afero.File, error)
- func (_m *MockFs) OpenFile(name string, flag int, perm fs.FileMode) (afero.File, error)
- func (_m *MockFs) Remove(name string) error
- func (_m *MockFs) RemoveAll(path string) error
- func (_m *MockFs) Rename(oldname string, newname string) error
- func (_m *MockFs) Stat(name string) (fs.FileInfo, error)
- type MockFs_Chmod_Call
- type MockFs_Chown_Call
- type MockFs_Chtimes_Call
- type MockFs_Create_Call
- type MockFs_Expecter
- func (_e *MockFs_Expecter) Chmod(name interface{}, mode interface{}) *MockFs_Chmod_Call
- func (_e *MockFs_Expecter) Chown(name interface{}, uid interface{}, gid interface{}) *MockFs_Chown_Call
- func (_e *MockFs_Expecter) Chtimes(name interface{}, atime interface{}, mtime interface{}) *MockFs_Chtimes_Call
- func (_e *MockFs_Expecter) Create(name interface{}) *MockFs_Create_Call
- func (_e *MockFs_Expecter) Mkdir(name interface{}, perm interface{}) *MockFs_Mkdir_Call
- func (_e *MockFs_Expecter) MkdirAll(path interface{}, perm interface{}) *MockFs_MkdirAll_Call
- func (_e *MockFs_Expecter) Name() *MockFs_Name_Call
- func (_e *MockFs_Expecter) Open(name interface{}) *MockFs_Open_Call
- func (_e *MockFs_Expecter) OpenFile(name interface{}, flag interface{}, perm interface{}) *MockFs_OpenFile_Call
- func (_e *MockFs_Expecter) Remove(name interface{}) *MockFs_Remove_Call
- func (_e *MockFs_Expecter) RemoveAll(path interface{}) *MockFs_RemoveAll_Call
- func (_e *MockFs_Expecter) Rename(oldname interface{}, newname interface{}) *MockFs_Rename_Call
- func (_e *MockFs_Expecter) Stat(name interface{}) *MockFs_Stat_Call
- type MockFs_MkdirAll_Call
- type MockFs_Mkdir_Call
- type MockFs_Name_Call
- type MockFs_OpenFile_Call
- func (_c *MockFs_OpenFile_Call) Return(_a0 afero.File, _a1 error) *MockFs_OpenFile_Call
- func (_c *MockFs_OpenFile_Call) Run(run func(name string, flag int, perm fs.FileMode)) *MockFs_OpenFile_Call
- func (_c *MockFs_OpenFile_Call) RunAndReturn(run func(string, int, fs.FileMode) (afero.File, error)) *MockFs_OpenFile_Call
- type MockFs_Open_Call
- type MockFs_RemoveAll_Call
- type MockFs_Remove_Call
- type MockFs_Rename_Call
- type MockFs_Stat_Call
- type MockHttpClient
- type MockHttpClient_Do_Call
- func (_c *MockHttpClient_Do_Call) Return(_a0 *http.Response, _a1 error) *MockHttpClient_Do_Call
- func (_c *MockHttpClient_Do_Call) Run(run func(req *http.Request)) *MockHttpClient_Do_Call
- func (_c *MockHttpClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHttpClient_Do_Call
- type MockHttpClient_Expecter
- type MockVegetaAttacker
- type MockVegetaAttacker_Attack_Call
- type MockVegetaAttacker_Expecter
- type MockVegetaMetrics
- type MockVegetaMetrics_Add_Call
- type MockVegetaMetrics_Close_Call
- type MockVegetaMetrics_Expecter
- type MockVegetaMetrics_Metrics_Call
- func (_c *MockVegetaMetrics_Metrics_Call) Return(_a0 *vegeta.Metrics) *MockVegetaMetrics_Metrics_Call
- func (_c *MockVegetaMetrics_Metrics_Call) Run(run func()) *MockVegetaMetrics_Metrics_Call
- func (_c *MockVegetaMetrics_Metrics_Call) RunAndReturn(run func() *vegeta.Metrics) *MockVegetaMetrics_Metrics_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommand ¶
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 ¶
func (_e *MockCommand_Expecter) IsRunning() *MockCommand_IsRunning_Call
IsRunning is a helper method to define mock.On call
func (*MockCommand_Expecter) ProcessPid ¶
func (_e *MockCommand_Expecter) ProcessPid() *MockCommand_ProcessPid_Call
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 ¶
func (_e *MockCommand_Expecter) Run() *MockCommand_Run_Call
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 ¶
func (_e *MockCommand_Expecter) Start() *MockCommand_Start_Call
Start is a helper method to define mock.On call
func (*MockCommand_Expecter) StderrPipe ¶
func (_e *MockCommand_Expecter) StderrPipe() *MockCommand_StderrPipe_Call
StderrPipe is a helper method to define mock.On call
func (*MockCommand_Expecter) StdoutPipe ¶
func (_e *MockCommand_Expecter) StdoutPipe() *MockCommand_StdoutPipe_Call
StdoutPipe is a helper method to define mock.On call
func (*MockCommand_Expecter) String ¶
func (_e *MockCommand_Expecter) String() *MockCommand_String_Call
String is a helper method to define mock.On call
func (*MockCommand_Expecter) Wait ¶
func (_e *MockCommand_Expecter) Wait() *MockCommand_Wait_Call
Wait is a helper method to define mock.On call
type MockCommand_IsRunning_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 (_c *MockCommand_IsRunning_Call) Return(_a0 bool) *MockCommand_IsRunning_Call
func (*MockCommand_IsRunning_Call) Run ¶
func (_c *MockCommand_IsRunning_Call) Run(run func()) *MockCommand_IsRunning_Call
func (*MockCommand_IsRunning_Call) RunAndReturn ¶
func (_c *MockCommand_IsRunning_Call) RunAndReturn(run func() bool) *MockCommand_IsRunning_Call
type MockCommand_ProcessPid_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 (_c *MockCommand_ProcessPid_Call) Return(_a0 int) *MockCommand_ProcessPid_Call
func (*MockCommand_ProcessPid_Call) Run ¶
func (_c *MockCommand_ProcessPid_Call) Run(run func()) *MockCommand_ProcessPid_Call
func (*MockCommand_ProcessPid_Call) RunAndReturn ¶
func (_c *MockCommand_ProcessPid_Call) RunAndReturn(run func() int) *MockCommand_ProcessPid_Call
type MockCommand_ProcessSignal_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 (_c *MockCommand_ProcessSignal_Call) Return(_a0 error) *MockCommand_ProcessSignal_Call
func (*MockCommand_ProcessSignal_Call) Run ¶
func (_c *MockCommand_ProcessSignal_Call) Run(run func(sig os.Signal)) *MockCommand_ProcessSignal_Call
func (*MockCommand_ProcessSignal_Call) RunAndReturn ¶
func (_c *MockCommand_ProcessSignal_Call) RunAndReturn(run func(os.Signal) error) *MockCommand_ProcessSignal_Call
type MockCommand_Run_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 (_c *MockCommand_Run_Call) Return(_a0 error) *MockCommand_Run_Call
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 ¶
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 (_c *MockCommand_SetStderr_Call) Return() *MockCommand_SetStderr_Call
func (*MockCommand_SetStderr_Call) Run ¶
func (_c *MockCommand_SetStderr_Call) Run(run func(stdout io.Writer)) *MockCommand_SetStderr_Call
func (*MockCommand_SetStderr_Call) RunAndReturn ¶
func (_c *MockCommand_SetStderr_Call) RunAndReturn(run func(io.Writer)) *MockCommand_SetStderr_Call
type MockCommand_SetStdout_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 (_c *MockCommand_SetStdout_Call) Return() *MockCommand_SetStdout_Call
func (*MockCommand_SetStdout_Call) Run ¶
func (_c *MockCommand_SetStdout_Call) Run(run func(stdout io.Writer)) *MockCommand_SetStdout_Call
func (*MockCommand_SetStdout_Call) RunAndReturn ¶
func (_c *MockCommand_SetStdout_Call) RunAndReturn(run func(io.Writer)) *MockCommand_SetStdout_Call
type MockCommand_Start_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 (_c *MockCommand_Start_Call) Return(_a0 error) *MockCommand_Start_Call
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 ¶
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 (_c *MockCommand_StderrPipe_Call) Return(_a0 io.ReadCloser, _a1 error) *MockCommand_StderrPipe_Call
func (*MockCommand_StderrPipe_Call) Run ¶
func (_c *MockCommand_StderrPipe_Call) Run(run func()) *MockCommand_StderrPipe_Call
func (*MockCommand_StderrPipe_Call) RunAndReturn ¶
func (_c *MockCommand_StderrPipe_Call) RunAndReturn(run func() (io.ReadCloser, error)) *MockCommand_StderrPipe_Call
type MockCommand_StdoutPipe_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 (_c *MockCommand_StdoutPipe_Call) Return(_a0 io.ReadCloser, _a1 error) *MockCommand_StdoutPipe_Call
func (*MockCommand_StdoutPipe_Call) Run ¶
func (_c *MockCommand_StdoutPipe_Call) Run(run func()) *MockCommand_StdoutPipe_Call
func (*MockCommand_StdoutPipe_Call) RunAndReturn ¶
func (_c *MockCommand_StdoutPipe_Call) RunAndReturn(run func() (io.ReadCloser, error)) *MockCommand_StdoutPipe_Call
type MockCommand_String_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 (_c *MockCommand_String_Call) Return(_a0 string) *MockCommand_String_Call
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 ¶
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 (_c *MockCommand_Wait_Call) Return(_a0 error) *MockCommand_Wait_Call
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 ¶
MockFile is an autogenerated mock type for the File type
func NewMockFile ¶
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) EXPECT ¶
func (_m *MockFile) EXPECT() *MockFile_Expecter
func (*MockFile) Readdirnames ¶
Readdirnames provides a mock function with given fields: n
type MockFile_Close_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 (_c *MockFile_Close_Call) Return(_a0 error) *MockFile_Close_Call
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 ¶
func (_e *MockFile_Expecter) Close() *MockFile_Close_Call
Close is a helper method to define mock.On call
func (*MockFile_Expecter) Name ¶
func (_e *MockFile_Expecter) Name() *MockFile_Name_Call
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 ¶
func (_e *MockFile_Expecter) Stat() *MockFile_Stat_Call
Stat is a helper method to define mock.On call
func (*MockFile_Expecter) Sync ¶
func (_e *MockFile_Expecter) Sync() *MockFile_Sync_Call
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 ¶
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 ¶
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 ¶
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 ¶
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 (_c *MockFile_Readdir_Call) Return(_a0 []fs.FileInfo, _a1 error) *MockFile_Readdir_Call
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 ¶
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 (_c *MockFile_Readdirnames_Call) Return(_a0 []string, _a1 error) *MockFile_Readdirnames_Call
func (*MockFile_Readdirnames_Call) Run ¶
func (_c *MockFile_Readdirnames_Call) Run(run func(n int)) *MockFile_Readdirnames_Call
func (*MockFile_Readdirnames_Call) RunAndReturn ¶
func (_c *MockFile_Readdirnames_Call) RunAndReturn(run func(int) ([]string, error)) *MockFile_Readdirnames_Call
type MockFile_Seek_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 ¶
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 ¶
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 ¶
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 (_c *MockFile_Truncate_Call) Return(_a0 error) *MockFile_Truncate_Call
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 ¶
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 (_c *MockFile_WriteAt_Call) Return(n int, err error) *MockFile_WriteAt_Call
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 ¶
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 (_c *MockFile_WriteString_Call) Return(ret int, err error) *MockFile_WriteString_Call
func (*MockFile_WriteString_Call) Run ¶
func (_c *MockFile_WriteString_Call) Run(run func(s string)) *MockFile_WriteString_Call
func (*MockFile_WriteString_Call) RunAndReturn ¶
func (_c *MockFile_WriteString_Call) RunAndReturn(run func(string) (int, error)) *MockFile_WriteString_Call
type MockFile_Write_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 ¶
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 (_m *MockFoundation) EXPECT() *MockFoundation_Expecter
func (*MockFoundation) ExecCommand ¶
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) 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 ¶
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 (_c *MockFoundation_Chdir_Call) Return(_a0 error) *MockFoundation_Chdir_Call
func (*MockFoundation_Chdir_Call) Run ¶
func (_c *MockFoundation_Chdir_Call) Run(run func(_a0 string)) *MockFoundation_Chdir_Call
func (*MockFoundation_Chdir_Call) RunAndReturn ¶
func (_c *MockFoundation_Chdir_Call) RunAndReturn(run func(string) error) *MockFoundation_Chdir_Call
type MockFoundation_CurrentUser_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 (_c *MockFoundation_CurrentUser_Call) Return(_a0 *user.User, _a1 error) *MockFoundation_CurrentUser_Call
func (*MockFoundation_CurrentUser_Call) Run ¶
func (_c *MockFoundation_CurrentUser_Call) Run(run func()) *MockFoundation_CurrentUser_Call
func (*MockFoundation_CurrentUser_Call) RunAndReturn ¶
func (_c *MockFoundation_CurrentUser_Call) RunAndReturn(run func() (*user.User, error)) *MockFoundation_CurrentUser_Call
type MockFoundation_DryRun_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 (_c *MockFoundation_DryRun_Call) Return(_a0 bool) *MockFoundation_DryRun_Call
func (*MockFoundation_DryRun_Call) Run ¶
func (_c *MockFoundation_DryRun_Call) Run(run func()) *MockFoundation_DryRun_Call
func (*MockFoundation_DryRun_Call) RunAndReturn ¶
func (_c *MockFoundation_DryRun_Call) RunAndReturn(run func() bool) *MockFoundation_DryRun_Call
type MockFoundation_ExecCommand_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 (_c *MockFoundation_ExecCommand_Call) Return(_a0 app.Command) *MockFoundation_ExecCommand_Call
func (*MockFoundation_ExecCommand_Call) Run ¶
func (_c *MockFoundation_ExecCommand_Call) Run(run func(ctx context.Context, name string, args []string)) *MockFoundation_ExecCommand_Call
func (*MockFoundation_ExecCommand_Call) RunAndReturn ¶
func (_c *MockFoundation_ExecCommand_Call) RunAndReturn(run func(context.Context, string, []string) app.Command) *MockFoundation_ExecCommand_Call
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 ¶
func (_e *MockFoundation_Expecter) CurrentUser() *MockFoundation_CurrentUser_Call
CurrentUser is a helper method to define mock.On call
func (*MockFoundation_Expecter) DryRun ¶
func (_e *MockFoundation_Expecter) DryRun() *MockFoundation_DryRun_Call
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 ¶
func (_e *MockFoundation_Expecter) Fs() *MockFoundation_Fs_Call
Fs is a helper method to define mock.On call
func (*MockFoundation_Expecter) GenerateUuid ¶
func (_e *MockFoundation_Expecter) GenerateUuid() *MockFoundation_GenerateUuid_Call
GenerateUuid is a helper method to define mock.On call
func (*MockFoundation_Expecter) Getwd ¶
func (_e *MockFoundation_Expecter) Getwd() *MockFoundation_Getwd_Call
Getwd is a helper method to define mock.On call
func (*MockFoundation_Expecter) HttpClient ¶
func (_e *MockFoundation_Expecter) HttpClient() *MockFoundation_HttpClient_Call
HttpClient is a helper method to define mock.On call
func (*MockFoundation_Expecter) Logger ¶
func (_e *MockFoundation_Expecter) Logger() *MockFoundation_Logger_Call
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 ¶
func (_e *MockFoundation_Expecter) UserHomeDir() *MockFoundation_UserHomeDir_Call
UserHomeDir is a helper method to define mock.On call
func (*MockFoundation_Expecter) VegetaAttacker ¶
func (_e *MockFoundation_Expecter) VegetaAttacker() *MockFoundation_VegetaAttacker_Call
VegetaAttacker is a helper method to define mock.On call
func (*MockFoundation_Expecter) VegetaMetrics ¶
func (_e *MockFoundation_Expecter) VegetaMetrics() *MockFoundation_VegetaMetrics_Call
VegetaMetrics is a helper method to define mock.On call
type MockFoundation_Fs_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 (_c *MockFoundation_Fs_Call) Return(_a0 app.Fs) *MockFoundation_Fs_Call
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 ¶
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 (_c *MockFoundation_GenerateUuid_Call) Return(_a0 string) *MockFoundation_GenerateUuid_Call
func (*MockFoundation_GenerateUuid_Call) Run ¶
func (_c *MockFoundation_GenerateUuid_Call) Run(run func()) *MockFoundation_GenerateUuid_Call
func (*MockFoundation_GenerateUuid_Call) RunAndReturn ¶
func (_c *MockFoundation_GenerateUuid_Call) RunAndReturn(run func() string) *MockFoundation_GenerateUuid_Call
type MockFoundation_Getwd_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 (_c *MockFoundation_Getwd_Call) Return(_a0 string, _a1 error) *MockFoundation_Getwd_Call
func (*MockFoundation_Getwd_Call) Run ¶
func (_c *MockFoundation_Getwd_Call) Run(run func()) *MockFoundation_Getwd_Call
func (*MockFoundation_Getwd_Call) RunAndReturn ¶
func (_c *MockFoundation_Getwd_Call) RunAndReturn(run func() (string, error)) *MockFoundation_Getwd_Call
type MockFoundation_HttpClient_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 (_c *MockFoundation_HttpClient_Call) Return(_a0 app.HttpClient) *MockFoundation_HttpClient_Call
func (*MockFoundation_HttpClient_Call) Run ¶
func (_c *MockFoundation_HttpClient_Call) Run(run func()) *MockFoundation_HttpClient_Call
func (*MockFoundation_HttpClient_Call) RunAndReturn ¶
func (_c *MockFoundation_HttpClient_Call) RunAndReturn(run func() app.HttpClient) *MockFoundation_HttpClient_Call
type MockFoundation_Logger_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 (_c *MockFoundation_Logger_Call) Return(_a0 *zap.SugaredLogger) *MockFoundation_Logger_Call
func (*MockFoundation_Logger_Call) Run ¶
func (_c *MockFoundation_Logger_Call) Run(run func()) *MockFoundation_Logger_Call
func (*MockFoundation_Logger_Call) RunAndReturn ¶
func (_c *MockFoundation_Logger_Call) RunAndReturn(run func() *zap.SugaredLogger) *MockFoundation_Logger_Call
type MockFoundation_LookupEnvVar_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 (_c *MockFoundation_LookupEnvVar_Call) Return(_a0 string, _a1 bool) *MockFoundation_LookupEnvVar_Call
func (*MockFoundation_LookupEnvVar_Call) Run ¶
func (_c *MockFoundation_LookupEnvVar_Call) Run(run func(key string)) *MockFoundation_LookupEnvVar_Call
func (*MockFoundation_LookupEnvVar_Call) RunAndReturn ¶
func (_c *MockFoundation_LookupEnvVar_Call) RunAndReturn(run func(string) (string, bool)) *MockFoundation_LookupEnvVar_Call
type MockFoundation_UserGroup_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 (_c *MockFoundation_UserGroup_Call) Return(_a0 *user.Group, _a1 error) *MockFoundation_UserGroup_Call
func (*MockFoundation_UserGroup_Call) Run ¶
func (_c *MockFoundation_UserGroup_Call) Run(run func(u *user.User)) *MockFoundation_UserGroup_Call
func (*MockFoundation_UserGroup_Call) RunAndReturn ¶
func (_c *MockFoundation_UserGroup_Call) RunAndReturn(run func(*user.User) (*user.Group, error)) *MockFoundation_UserGroup_Call
type MockFoundation_UserHomeDir_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 (_c *MockFoundation_UserHomeDir_Call) Return(_a0 string, _a1 error) *MockFoundation_UserHomeDir_Call
func (*MockFoundation_UserHomeDir_Call) Run ¶
func (_c *MockFoundation_UserHomeDir_Call) Run(run func()) *MockFoundation_UserHomeDir_Call
func (*MockFoundation_UserHomeDir_Call) RunAndReturn ¶
func (_c *MockFoundation_UserHomeDir_Call) RunAndReturn(run func() (string, error)) *MockFoundation_UserHomeDir_Call
type MockFoundation_User_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 (_c *MockFoundation_User_Call) Return(_a0 *user.User, _a1 error) *MockFoundation_User_Call
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 ¶
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 (_c *MockFoundation_VegetaAttacker_Call) Return(_a0 app.VegetaAttacker) *MockFoundation_VegetaAttacker_Call
func (*MockFoundation_VegetaAttacker_Call) Run ¶
func (_c *MockFoundation_VegetaAttacker_Call) Run(run func()) *MockFoundation_VegetaAttacker_Call
func (*MockFoundation_VegetaAttacker_Call) RunAndReturn ¶
func (_c *MockFoundation_VegetaAttacker_Call) RunAndReturn(run func() app.VegetaAttacker) *MockFoundation_VegetaAttacker_Call
type MockFoundation_VegetaMetrics_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 (_c *MockFoundation_VegetaMetrics_Call) Return(_a0 app.VegetaMetrics) *MockFoundation_VegetaMetrics_Call
func (*MockFoundation_VegetaMetrics_Call) Run ¶
func (_c *MockFoundation_VegetaMetrics_Call) Run(run func()) *MockFoundation_VegetaMetrics_Call
func (*MockFoundation_VegetaMetrics_Call) RunAndReturn ¶
func (_c *MockFoundation_VegetaMetrics_Call) RunAndReturn(run func() app.VegetaMetrics) *MockFoundation_VegetaMetrics_Call
type MockFs ¶
MockFs is an autogenerated mock type for the Fs type
func NewMockFs ¶
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) EXPECT ¶
func (_m *MockFs) EXPECT() *MockFs_Expecter
type MockFs_Chmod_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 ¶
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 ¶
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 (_c *MockFs_Chtimes_Call) Return(_a0 error) *MockFs_Chtimes_Call
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 ¶
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 ¶
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 (_c *MockFs_MkdirAll_Call) Return(_a0 error) *MockFs_MkdirAll_Call
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 ¶
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 ¶
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 ¶
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 (_c *MockFs_OpenFile_Call) Return(_a0 afero.File, _a1 error) *MockFs_OpenFile_Call
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 ¶
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 ¶
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 (_c *MockFs_RemoveAll_Call) Return(_a0 error) *MockFs_RemoveAll_Call
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 ¶
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 ¶
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 ¶
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 ¶
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) EXPECT ¶
func (_m *MockHttpClient) EXPECT() *MockHttpClient_Expecter
type MockHttpClient_Do_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 (_c *MockHttpClient_Do_Call) Return(_a0 *http.Response, _a1 error) *MockHttpClient_Do_Call
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 ¶
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 ¶
func (_m *MockVegetaAttacker) EXPECT() *MockVegetaAttacker_Expecter
type MockVegetaAttacker_Attack_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 (_c *MockVegetaAttacker_Attack_Call) Return(_a0 <-chan *vegeta.Result) *MockVegetaAttacker_Attack_Call
func (*MockVegetaAttacker_Attack_Call) Run ¶
func (_c *MockVegetaAttacker_Attack_Call) Run(run func(targeter vegeta.Targeter, rate vegeta.ConstantPacer, duration time.Duration, name string)) *MockVegetaAttacker_Attack_Call
func (*MockVegetaAttacker_Attack_Call) RunAndReturn ¶
func (_c *MockVegetaAttacker_Attack_Call) RunAndReturn(run func(vegeta.Targeter, vegeta.ConstantPacer, time.Duration, string) <-chan *vegeta.Result) *MockVegetaAttacker_Attack_Call
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 ¶
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 (_m *MockVegetaMetrics) EXPECT() *MockVegetaMetrics_Expecter
func (*MockVegetaMetrics) Metrics ¶
func (_m *MockVegetaMetrics) Metrics() *vegeta.Metrics
Metrics provides a mock function with given fields:
type MockVegetaMetrics_Add_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 (_c *MockVegetaMetrics_Add_Call) Return() *MockVegetaMetrics_Add_Call
func (*MockVegetaMetrics_Add_Call) Run ¶
func (_c *MockVegetaMetrics_Add_Call) Run(run func(r *vegeta.Result)) *MockVegetaMetrics_Add_Call
func (*MockVegetaMetrics_Add_Call) RunAndReturn ¶
func (_c *MockVegetaMetrics_Add_Call) RunAndReturn(run func(*vegeta.Result)) *MockVegetaMetrics_Add_Call
type MockVegetaMetrics_Close_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 (_c *MockVegetaMetrics_Close_Call) Return() *MockVegetaMetrics_Close_Call
func (*MockVegetaMetrics_Close_Call) Run ¶
func (_c *MockVegetaMetrics_Close_Call) Run(run func()) *MockVegetaMetrics_Close_Call
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 ¶
func (_e *MockVegetaMetrics_Expecter) Add(r interface{}) *MockVegetaMetrics_Add_Call
Add is a helper method to define mock.On call
- r *vegeta.Result
func (*MockVegetaMetrics_Expecter) Close ¶
func (_e *MockVegetaMetrics_Expecter) Close() *MockVegetaMetrics_Close_Call
Close is a helper method to define mock.On call
func (*MockVegetaMetrics_Expecter) Metrics ¶
func (_e *MockVegetaMetrics_Expecter) Metrics() *MockVegetaMetrics_Metrics_Call
Metrics is a helper method to define mock.On call
type MockVegetaMetrics_Metrics_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 (_c *MockVegetaMetrics_Metrics_Call) Return(_a0 *vegeta.Metrics) *MockVegetaMetrics_Metrics_Call
func (*MockVegetaMetrics_Metrics_Call) Run ¶
func (_c *MockVegetaMetrics_Metrics_Call) Run(run func()) *MockVegetaMetrics_Metrics_Call
func (*MockVegetaMetrics_Metrics_Call) RunAndReturn ¶
func (_c *MockVegetaMetrics_Metrics_Call) RunAndReturn(run func() *vegeta.Metrics) *MockVegetaMetrics_Metrics_Call