Documentation ¶
Index ¶
- type MockFoundation
- 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() afero.Fs
- 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_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) 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) 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_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 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 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) 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() afero.Fs
Fs 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_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) 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) 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 afero.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() afero.Fs) *MockFoundation_Fs_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 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