-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_hashing.go
69 lines (57 loc) · 1.89 KB
/
mock_hashing.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ARM-software/golang-utils/utils/hashing (interfaces: IHash)
// Package mocks is a generated GoMock package.
package mocks
import (
io "io"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockIHash is a mock of IHash interface.
type MockIHash struct {
ctrl *gomock.Controller
recorder *MockIHashMockRecorder
}
// MockIHashMockRecorder is the mock recorder for MockIHash.
type MockIHashMockRecorder struct {
mock *MockIHash
}
// NewMockIHash creates a new mock instance.
func NewMockIHash(ctrl *gomock.Controller) *MockIHash {
mock := &MockIHash{ctrl: ctrl}
mock.recorder = &MockIHashMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIHash) EXPECT() *MockIHashMockRecorder {
return m.recorder
}
// Calculate mocks base method.
func (m *MockIHash) Calculate(arg0 io.Reader) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Calculate", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Calculate indicates an expected call of Calculate.
func (mr *MockIHashMockRecorder) Calculate(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Calculate", reflect.TypeOf((*MockIHash)(nil).Calculate), arg0)
}
// GetType mocks base method.
func (m *MockIHash) GetType() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetType")
ret0, _ := ret[0].(string)
return ret0
}
// GetType indicates an expected call of GetType.
func (mr *MockIHashMockRecorder) GetType() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetType", reflect.TypeOf((*MockIHash)(nil).GetType))
}