-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_mocks.go
115 lines (107 loc) · 1.91 KB
/
example_mocks.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// This is an automatically generated file! Do not modify.
package main
import(
"os"
)
type (
// MockExampleOne is an automatically generated function mocking the ExampleOne interface.
MockExampleOne struct {
OnMethodOne func(
) (
)
OnMethodTwo func(
f func(),
) (
ExampleTwo[ExampleOne],
)
}
// MockExampleTwo is an automatically generated function mocking the ExampleTwo interface.
MockExampleTwo[T any,] struct {
OnMethodThree func(
t T,
) (
any,
)
}
// MockExampleThree is an automatically generated function mocking the ExampleThree interface.
MockExampleThree[T ExampleTwo[S],S any,] struct {
OnMethodFour func(
t T,
) (
func() map[os.File]struct {
a S
b interface {
M () string}},
)
}
// MockExampleFour is an automatically generated function mocking the ExampleFour interface.
MockExampleFour struct {
OnMethodFive func(
a A,
a2 A,
a3 A,
b B,
b2 B,
) (
A,
B,
)
}
)
// MethodOne is an automatically generated function used for mocking.
func (mock *MockExampleOne) MethodOne(
) { mock.OnMethodOne(
)
}
// MethodTwo is an automatically generated function used for mocking.
func (mock *MockExampleOne) MethodTwo(
f func(),
) (
ExampleTwo[ExampleOne],
) {
return mock.OnMethodTwo(
f,
)
}
// MethodThree is an automatically generated function used for mocking.
func (mock *MockExampleTwo[T,]) MethodThree(
t T,
) (
any,
) {
return mock.OnMethodThree(
t,
)
}
// MethodFour is an automatically generated function used for mocking.
func (mock *MockExampleThree[T,S,]) MethodFour(
t T,
) (
func() map[os.File]struct {
a S
b interface {
M () string}},
) {
return mock.OnMethodFour(
t,
)
}
// MethodFive is an automatically generated function used for mocking.
func (mock *MockExampleFour) MethodFive(
a A,
a2 A,
a3 A,
b B,
b2 B,
) (
A,
B,
) {
return mock.OnMethodFive(
a,
a2,
a3,
b,
b2,
)
}