/
property.go
44 lines (34 loc) · 1.14 KB
/
property.go
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
package fake
import (
"github.com/stretchr/testify/mock"
st "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables"
)
var _ st.Property = new(Property)
// Property is a mock for of sendtables.Property.
type Property struct {
mock.Mock
}
// Name is a mock-implementation of Property.Name().
func (p *Property) Name() string {
return p.Called().Get(0).(string)
}
// Value is a mock-implementation of Property.Value().
func (p *Property) Value() st.PropertyValue {
return p.Called().Get(0).(st.PropertyValue)
}
// Type is a mock-implementation of Property.Type().
func (p *Property) Type() st.PropertyType {
return p.Called().Get(0).(st.PropertyType)
}
// OnUpdate is a mock-implementation of Property.OnUpdate().
func (p *Property) OnUpdate(handler st.PropertyUpdateHandler) {
p.Called(handler)
}
// Bind is a mock-implementation of Property.Bind().
func (p *Property) Bind(variable any, valueType st.PropertyValueType) {
p.Called(variable, valueType)
}
// ArrayElementType is a mock-implementation of Property.ArrayElementType().
func (p *Property) ArrayElementType() st.PropertyType {
return p.Called().Get(0).(st.PropertyType)
}