github.com/MetalBlockchain/metalgo@v1.11.9/utils/hashing/mock_hasher.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MetalBlockchain/metalgo/utils/hashing (interfaces: Hasher)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package=hashing -destination=utils/hashing/mock_hasher.go github.com/MetalBlockchain/metalgo/utils/hashing Hasher
     7  //
     8  
     9  // Package hashing is a generated GoMock package.
    10  package hashing
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	gomock "go.uber.org/mock/gomock"
    16  )
    17  
    18  // MockHasher is a mock of Hasher interface.
    19  type MockHasher struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockHasherMockRecorder
    22  }
    23  
    24  // MockHasherMockRecorder is the mock recorder for MockHasher.
    25  type MockHasherMockRecorder struct {
    26  	mock *MockHasher
    27  }
    28  
    29  // NewMockHasher creates a new mock instance.
    30  func NewMockHasher(ctrl *gomock.Controller) *MockHasher {
    31  	mock := &MockHasher{ctrl: ctrl}
    32  	mock.recorder = &MockHasherMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockHasher) EXPECT() *MockHasherMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // Hash mocks base method.
    42  func (m *MockHasher) Hash(arg0 []byte) uint64 {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "Hash", arg0)
    45  	ret0, _ := ret[0].(uint64)
    46  	return ret0
    47  }
    48  
    49  // Hash indicates an expected call of Hash.
    50  func (mr *MockHasherMockRecorder) Hash(arg0 any) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0)
    53  }