go.uber.org/cadence@v1.2.9/mocks/DomainClient.go (about) 1 // Copyright (c) 2017 Uber Technologies, Inc. 2 // 3 // Permission is hereby granted, free of charge, to any person obtaining a copy 4 // of this software and associated documentation files (the "Software"), to deal 5 // in the Software without restriction, including without limitation the rights 6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 // copies of the Software, and to permit persons to whom the Software is 8 // furnished to do so, subject to the following conditions: 9 // 10 // The above copyright notice and this permission notice shall be included in 11 // all copies or substantial portions of the Software. 12 // 13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 // THE SOFTWARE. 20 21 // Code generated by mockery v1.0.0 22 package mocks 23 24 import ( 25 context "context" 26 27 mock "github.com/stretchr/testify/mock" 28 29 shared "go.uber.org/cadence/.gen/go/shared" 30 ) 31 32 // DomainClient is an autogenerated mock type for the DomainClient type 33 type DomainClient struct { 34 mock.Mock 35 } 36 37 // Describe provides a mock function with given fields: ctx, name 38 func (_m *DomainClient) Describe(ctx context.Context, name string) (*shared.DescribeDomainResponse, error) { 39 ret := _m.Called(ctx, name) 40 41 var r0 *shared.DescribeDomainResponse 42 if rf, ok := ret.Get(0).(func(context.Context, string) *shared.DescribeDomainResponse); ok { 43 r0 = rf(ctx, name) 44 } else { 45 if ret.Get(0) != nil { 46 r0 = ret.Get(0).(*shared.DescribeDomainResponse) 47 } 48 } 49 50 var r1 error 51 if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { 52 r1 = rf(ctx, name) 53 } else { 54 r1 = ret.Error(1) 55 } 56 57 return r0, r1 58 } 59 60 // Register provides a mock function with given fields: ctx, request 61 func (_m *DomainClient) Register(ctx context.Context, request *shared.RegisterDomainRequest) error { 62 ret := _m.Called(ctx, request) 63 64 var r0 error 65 if rf, ok := ret.Get(0).(func(context.Context, *shared.RegisterDomainRequest) error); ok { 66 r0 = rf(ctx, request) 67 } else { 68 r0 = ret.Error(0) 69 } 70 71 return r0 72 } 73 74 // Update provides a mock function with given fields: ctx, request 75 func (_m *DomainClient) Update(ctx context.Context, request *shared.UpdateDomainRequest) error { 76 ret := _m.Called(ctx) 77 78 var r0 error 79 if rf, ok := ret.Get(0).(func(context.Context, *shared.UpdateDomainRequest) error); ok { 80 r0 = rf(ctx, request) 81 } else { 82 r0 = ret.Error(0) 83 } 84 85 return r0 86 }