mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
54 lines
1.4 KiB
Go
54 lines
1.4 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/crypto/hash (interfaces: Hasher)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=hash -destination=hash/mock_hasher.go github.com/luxfi/crypto/hash Hasher
|
|
//
|
|
|
|
// Package hash is a generated GoMock package.
|
|
package hash
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/luxfi/mock/gomock"
|
|
)
|
|
|
|
// MockHasher is a mock of Hasher interface.
|
|
type MockHasher struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockHasherMockRecorder
|
|
}
|
|
|
|
// MockHasherMockRecorder is the mock recorder for MockHasher.
|
|
type MockHasherMockRecorder struct {
|
|
mock *MockHasher
|
|
}
|
|
|
|
// NewMockHasher creates a new mock instance.
|
|
func NewMockHasher(ctrl *gomock.Controller) *MockHasher {
|
|
mock := &MockHasher{ctrl: ctrl}
|
|
mock.recorder = &MockHasherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockHasher) EXPECT() *MockHasherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Hash mocks base method.
|
|
func (m *MockHasher) Hash(arg0 []byte) uint64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Hash", arg0)
|
|
ret0, _ := ret[0].(uint64)
|
|
return ret0
|
|
}
|
|
|
|
// Hash indicates an expected call of Hash.
|
|
func (mr *MockHasherMockRecorder) Hash(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0)
|
|
}
|