-
Notifications
You must be signed in to change notification settings - Fork 646
/
mock_hasher.go
51 lines (41 loc) · 1.38 KB
/
mock_hasher.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (C) 2019-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/utils/hashing (interfaces: Hasher)
// Package hashing is a generated GoMock package.
package hashing
import (
reflect "reflect"
gomock "github.com/golang/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 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0)
}