/
WorkbookAddParameter.go
98 lines (76 loc) · 2.12 KB
/
WorkbookAddParameter.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
// Code generated by mockery v2.11.0. DO NOT EDIT.
package mocks
import (
domain "github.com/kujilabo/cocotola/cocotola-api/src/app/domain"
mock "github.com/stretchr/testify/mock"
testing "testing"
)
// WorkbookAddParameter is an autogenerated mock type for the WorkbookAddParameter type
type WorkbookAddParameter struct {
mock.Mock
}
// GetLang2 provides a mock function with given fields:
func (_m *WorkbookAddParameter) GetLang2() domain.Lang2 {
ret := _m.Called()
var r0 domain.Lang2
if rf, ok := ret.Get(0).(func() domain.Lang2); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(domain.Lang2)
}
}
return r0
}
// GetName provides a mock function with given fields:
func (_m *WorkbookAddParameter) GetName() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetProblemType provides a mock function with given fields:
func (_m *WorkbookAddParameter) GetProblemType() domain.ProblemTypeName {
ret := _m.Called()
var r0 domain.ProblemTypeName
if rf, ok := ret.Get(0).(func() domain.ProblemTypeName); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(domain.ProblemTypeName)
}
return r0
}
// GetProperties provides a mock function with given fields:
func (_m *WorkbookAddParameter) GetProperties() map[string]string {
ret := _m.Called()
var r0 map[string]string
if rf, ok := ret.Get(0).(func() map[string]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]string)
}
}
return r0
}
// GetQuestionText provides a mock function with given fields:
func (_m *WorkbookAddParameter) GetQuestionText() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// NewWorkbookAddParameter creates a new instance of WorkbookAddParameter. It also registers a cleanup function to assert the mocks expectations.
func NewWorkbookAddParameter(t testing.TB) *WorkbookAddParameter {
mock := &WorkbookAddParameter{}
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}