-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathValue.go
More file actions
85 lines (67 loc) · 1.74 KB
/
Value.go
File metadata and controls
85 lines (67 loc) · 1.74 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Code generated by mockery v1.0.0.
// Modified manually for type alias to work correctly.
// https://github.com/vektra/mockery/issues/236
package mocks
import (
"github.com/stretchr/testify/mock"
commonpb "go.temporal.io/api/common/v1"
)
// Value is an autogenerated mock type for the Value type
type Value struct {
mock.Mock
}
// Get provides a mock function with given fields: valuePtr
func (_m *Value) Get(valuePtr interface{}) error {
ret := _m.Called(valuePtr)
if len(ret) == 0 {
panic("no return value specified for Get")
}
var r0 error
if rf, ok := ret.Get(0).(func(interface{}) error); ok {
r0 = rf(valuePtr)
} else {
r0 = ret.Error(0)
}
return r0
}
// HasValue provides a mock function with given fields:
func (_m *Value) HasValue() bool {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for HasValue")
}
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Payloads provides a mock function with given fields:
func (_m *Value) Payloads() *commonpb.Payloads {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Payloads")
}
var r0 *commonpb.Payloads
if rf, ok := ret.Get(0).(func() *commonpb.Payloads); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*commonpb.Payloads)
}
}
return r0
}
// NewEncodedValue creates a new instance of Value. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewEncodedValue(t interface {
mock.TestingT
Cleanup(func())
}) *Value {
mock := &Value{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}