go.temporal.io/server@v1.23.0/common/testing/mocksdk/workflowrun_mock.go (about) 1 // The MIT License 2 // 3 // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 // 5 // Copyright (c) 2020 Uber Technologies, Inc. 6 // 7 // Permission is hereby granted, free of charge, to any person obtaining a copy 8 // of this software and associated documentation files (the "Software"), to deal 9 // in the Software without restriction, including without limitation the rights 10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 // copies of the Software, and to permit persons to whom the Software is 12 // furnished to do so, subject to the following conditions: 13 // 14 // The above copyright notice and this permission notice shall be included in 15 // all copies or substantial portions of the Software. 16 // 17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 // THE SOFTWARE. 24 25 // Code generated by MockGen. DO NOT EDIT. 26 // Source: go.temporal.io/sdk/client (interfaces: WorkflowRun) 27 28 // Package mocksdk is a generated GoMock package. 29 package mocksdk 30 31 import ( 32 context "context" 33 reflect "reflect" 34 35 gomock "github.com/golang/mock/gomock" 36 client "go.temporal.io/sdk/client" 37 ) 38 39 // MockWorkflowRun is a mock of WorkflowRun interface. 40 type MockWorkflowRun struct { 41 ctrl *gomock.Controller 42 recorder *MockWorkflowRunMockRecorder 43 } 44 45 // MockWorkflowRunMockRecorder is the mock recorder for MockWorkflowRun. 46 type MockWorkflowRunMockRecorder struct { 47 mock *MockWorkflowRun 48 } 49 50 // NewMockWorkflowRun creates a new mock instance. 51 func NewMockWorkflowRun(ctrl *gomock.Controller) *MockWorkflowRun { 52 mock := &MockWorkflowRun{ctrl: ctrl} 53 mock.recorder = &MockWorkflowRunMockRecorder{mock} 54 return mock 55 } 56 57 // EXPECT returns an object that allows the caller to indicate expected use. 58 func (m *MockWorkflowRun) EXPECT() *MockWorkflowRunMockRecorder { 59 return m.recorder 60 } 61 62 // Get mocks base method. 63 func (m *MockWorkflowRun) Get(arg0 context.Context, arg1 interface{}) error { 64 m.ctrl.T.Helper() 65 ret := m.ctrl.Call(m, "Get", arg0, arg1) 66 ret0, _ := ret[0].(error) 67 return ret0 68 } 69 70 // Get indicates an expected call of Get. 71 func (mr *MockWorkflowRunMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockWorkflowRun)(nil).Get), arg0, arg1) 74 } 75 76 // GetID mocks base method. 77 func (m *MockWorkflowRun) GetID() string { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "GetID") 80 ret0, _ := ret[0].(string) 81 return ret0 82 } 83 84 // GetID indicates an expected call of GetID. 85 func (mr *MockWorkflowRunMockRecorder) GetID() *gomock.Call { 86 mr.mock.ctrl.T.Helper() 87 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetID", reflect.TypeOf((*MockWorkflowRun)(nil).GetID)) 88 } 89 90 // GetRunID mocks base method. 91 func (m *MockWorkflowRun) GetRunID() string { 92 m.ctrl.T.Helper() 93 ret := m.ctrl.Call(m, "GetRunID") 94 ret0, _ := ret[0].(string) 95 return ret0 96 } 97 98 // GetRunID indicates an expected call of GetRunID. 99 func (mr *MockWorkflowRunMockRecorder) GetRunID() *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRunID", reflect.TypeOf((*MockWorkflowRun)(nil).GetRunID)) 102 } 103 104 // GetWithOptions mocks base method. 105 func (m *MockWorkflowRun) GetWithOptions(arg0 context.Context, arg1 interface{}, arg2 client.WorkflowRunGetOptions) error { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "GetWithOptions", arg0, arg1, arg2) 108 ret0, _ := ret[0].(error) 109 return ret0 110 } 111 112 // GetWithOptions indicates an expected call of GetWithOptions. 113 func (mr *MockWorkflowRunMockRecorder) GetWithOptions(arg0, arg1, arg2 interface{}) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWithOptions", reflect.TypeOf((*MockWorkflowRun)(nil).GetWithOptions), arg0, arg1, arg2) 116 }