Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
Hash is an autogenerated mock type for the Hash type
func NewHash ¶
NewHash creates a new instance of Hash. 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 (*Hash) EXPECT ¶
func (_m *Hash) EXPECT() *Hash_Expecter
func (*Hash) NeedsRehash ¶
NeedsRehash provides a mock function with given fields: hashedValue
type Hash_Check_Call ¶
Hash_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*Hash_Check_Call) Return ¶
func (_c *Hash_Check_Call) Return(_a0 bool) *Hash_Check_Call
func (*Hash_Check_Call) Run ¶
func (_c *Hash_Check_Call) Run(run func(value string, hashedValue string)) *Hash_Check_Call
func (*Hash_Check_Call) RunAndReturn ¶
func (_c *Hash_Check_Call) RunAndReturn(run func(string, string) bool) *Hash_Check_Call
type Hash_Expecter ¶
type Hash_Expecter struct {
// contains filtered or unexported fields
}
func (*Hash_Expecter) Check ¶
func (_e *Hash_Expecter) Check(value interface{}, hashedValue interface{}) *Hash_Check_Call
Check is a helper method to define mock.On call
- value string
- hashedValue string
func (*Hash_Expecter) Make ¶
func (_e *Hash_Expecter) Make(value interface{}) *Hash_Make_Call
Make is a helper method to define mock.On call
- value string
func (*Hash_Expecter) NeedsRehash ¶
func (_e *Hash_Expecter) NeedsRehash(hashedValue interface{}) *Hash_NeedsRehash_Call
NeedsRehash is a helper method to define mock.On call
- hashedValue string
type Hash_Make_Call ¶
Hash_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*Hash_Make_Call) Return ¶
func (_c *Hash_Make_Call) Return(_a0 string, _a1 error) *Hash_Make_Call
func (*Hash_Make_Call) Run ¶
func (_c *Hash_Make_Call) Run(run func(value string)) *Hash_Make_Call
func (*Hash_Make_Call) RunAndReturn ¶
func (_c *Hash_Make_Call) RunAndReturn(run func(string) (string, error)) *Hash_Make_Call
type Hash_NeedsRehash_Call ¶
Hash_NeedsRehash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NeedsRehash'
func (*Hash_NeedsRehash_Call) Return ¶
func (_c *Hash_NeedsRehash_Call) Return(_a0 bool) *Hash_NeedsRehash_Call
func (*Hash_NeedsRehash_Call) Run ¶
func (_c *Hash_NeedsRehash_Call) Run(run func(hashedValue string)) *Hash_NeedsRehash_Call
func (*Hash_NeedsRehash_Call) RunAndReturn ¶
func (_c *Hash_NeedsRehash_Call) RunAndReturn(run func(string) bool) *Hash_NeedsRehash_Call