github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/cmd/ft_personality/internal/http/mock_trillian.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/google/trillian-examples/binary_transparency/firmware/cmd/ft_personality/internal/http (interfaces: Trillian) 3 4 package http 5 6 import ( 7 context "context" 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 types "github.com/google/trillian/types" 12 ) 13 14 // MockTrillian is a mock of Trillian interface. 15 type MockTrillian struct { 16 ctrl *gomock.Controller 17 recorder *MockTrillianMockRecorder 18 } 19 20 // MockTrillianMockRecorder is the mock recorder for MockTrillian. 21 type MockTrillianMockRecorder struct { 22 mock *MockTrillian 23 } 24 25 // NewMockTrillian creates a new mock instance. 26 func NewMockTrillian(ctrl *gomock.Controller) *MockTrillian { 27 mock := &MockTrillian{ctrl: ctrl} 28 mock.recorder = &MockTrillianMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockTrillian) EXPECT() *MockTrillianMockRecorder { 34 return m.recorder 35 } 36 37 // AddSignedStatement mocks base method. 38 func (m *MockTrillian) AddSignedStatement(arg0 context.Context, arg1 []byte) error { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "AddSignedStatement", arg0, arg1) 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // AddSignedStatement indicates an expected call of AddSignedStatement. 46 func (mr *MockTrillianMockRecorder) AddSignedStatement(arg0, arg1 interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSignedStatement", reflect.TypeOf((*MockTrillian)(nil).AddSignedStatement), arg0, arg1) 49 } 50 51 // ConsistencyProof mocks base method. 52 func (m *MockTrillian) ConsistencyProof(arg0 context.Context, arg1, arg2 uint64) ([][]byte, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "ConsistencyProof", arg0, arg1, arg2) 55 ret0, _ := ret[0].([][]byte) 56 ret1, _ := ret[1].(error) 57 return ret0, ret1 58 } 59 60 // ConsistencyProof indicates an expected call of ConsistencyProof. 61 func (mr *MockTrillianMockRecorder) ConsistencyProof(arg0, arg1, arg2 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsistencyProof", reflect.TypeOf((*MockTrillian)(nil).ConsistencyProof), arg0, arg1, arg2) 64 } 65 66 // FirmwareManifestAtIndex mocks base method. 67 func (m *MockTrillian) FirmwareManifestAtIndex(arg0 context.Context, arg1, arg2 uint64) ([]byte, [][]byte, error) { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "FirmwareManifestAtIndex", arg0, arg1, arg2) 70 ret0, _ := ret[0].([]byte) 71 ret1, _ := ret[1].([][]byte) 72 ret2, _ := ret[2].(error) 73 return ret0, ret1, ret2 74 } 75 76 // FirmwareManifestAtIndex indicates an expected call of FirmwareManifestAtIndex. 77 func (mr *MockTrillianMockRecorder) FirmwareManifestAtIndex(arg0, arg1, arg2 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FirmwareManifestAtIndex", reflect.TypeOf((*MockTrillian)(nil).FirmwareManifestAtIndex), arg0, arg1, arg2) 80 } 81 82 // InclusionProofByHash mocks base method. 83 func (m *MockTrillian) InclusionProofByHash(arg0 context.Context, arg1 []byte, arg2 uint64) (uint64, [][]byte, error) { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "InclusionProofByHash", arg0, arg1, arg2) 86 ret0, _ := ret[0].(uint64) 87 ret1, _ := ret[1].([][]byte) 88 ret2, _ := ret[2].(error) 89 return ret0, ret1, ret2 90 } 91 92 // InclusionProofByHash indicates an expected call of InclusionProofByHash. 93 func (mr *MockTrillianMockRecorder) InclusionProofByHash(arg0, arg1, arg2 interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InclusionProofByHash", reflect.TypeOf((*MockTrillian)(nil).InclusionProofByHash), arg0, arg1, arg2) 96 } 97 98 // Root mocks base method. 99 func (m *MockTrillian) Root() *types.LogRootV1 { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "Root") 102 ret0, _ := ret[0].(*types.LogRootV1) 103 return ret0 104 } 105 106 // Root indicates an expected call of Root. 107 func (mr *MockTrillianMockRecorder) Root() *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Root", reflect.TypeOf((*MockTrillian)(nil).Root)) 110 }