go.uber.org/cadence@v1.2.9/mocks/Value.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. DO NOT EDIT. 22 23 package mocks 24 25 import mock "github.com/stretchr/testify/mock" 26 27 // Value is an autogenerated mock type for the Value type 28 type Value struct { 29 mock.Mock 30 } 31 32 // Get provides a mock function with given fields: valuePtr 33 func (_m *Value) Get(valuePtr interface{}) error { 34 ret := _m.Called(valuePtr) 35 36 var r0 error 37 if rf, ok := ret.Get(0).(func(interface{}) error); ok { 38 r0 = rf(valuePtr) 39 } else { 40 r0 = ret.Error(0) 41 } 42 43 return r0 44 } 45 46 // HasValue provides a mock function with given fields: 47 func (_m *Value) HasValue() bool { 48 ret := _m.Called() 49 50 var r0 bool 51 if rf, ok := ret.Get(0).(func() bool); ok { 52 r0 = rf() 53 } else { 54 r0 = ret.Get(0).(bool) 55 } 56 57 return r0 58 }