Documentation
¶
Index ¶
- type Validator
- type Validator_Expecter
- type Validator_Name_Call
- type Validator_Validate_Call
- func (_c *Validator_Validate_Call) Return(_a0 qualification.Result, _a1 error) *Validator_Validate_Call
- func (_c *Validator_Validate_Call) Run(run func(ctx context.Context, pr github.PullRequest)) *Validator_Validate_Call
- func (_c *Validator_Validate_Call) RunAndReturn(run func(context.Context, github.PullRequest) (qualification.Result, error)) *Validator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶
NewValidator creates a new instance of Validator. 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 (*Validator) EXPECT ¶
func (_m *Validator) EXPECT() *Validator_Expecter
func (*Validator) Validate ¶
func (_m *Validator) Validate(ctx context.Context, pr github.PullRequest) (qualification.Result, error)
Validate provides a mock function with given fields: ctx, pr
type Validator_Expecter ¶
type Validator_Expecter struct {
// contains filtered or unexported fields
}
func (*Validator_Expecter) Name ¶
func (_e *Validator_Expecter) Name() *Validator_Name_Call
Name is a helper method to define mock.On call
func (*Validator_Expecter) Validate ¶
func (_e *Validator_Expecter) Validate(ctx interface{}, pr interface{}) *Validator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- pr github.PullRequest
type Validator_Name_Call ¶
Validator_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Validator_Name_Call) Return ¶
func (_c *Validator_Name_Call) Return(_a0 string) *Validator_Name_Call
func (*Validator_Name_Call) Run ¶
func (_c *Validator_Name_Call) Run(run func()) *Validator_Name_Call
func (*Validator_Name_Call) RunAndReturn ¶
func (_c *Validator_Name_Call) RunAndReturn(run func() string) *Validator_Name_Call
type Validator_Validate_Call ¶
Validator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Validator_Validate_Call) Return ¶
func (_c *Validator_Validate_Call) Return(_a0 qualification.Result, _a1 error) *Validator_Validate_Call
func (*Validator_Validate_Call) Run ¶
func (_c *Validator_Validate_Call) Run(run func(ctx context.Context, pr github.PullRequest)) *Validator_Validate_Call
func (*Validator_Validate_Call) RunAndReturn ¶
func (_c *Validator_Validate_Call) RunAndReturn(run func(context.Context, github.PullRequest) (qualification.Result, error)) *Validator_Validate_Call