-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated.test_funcop.go
67 lines (54 loc) · 971 Bytes
/
zz_generated.test_funcop.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
// This file has been automatically generated. Don't edit it.
package animal
import (
"bytes"
"encoding/gob"
jen "github.com/dave/jennifer/jen"
"time"
)
type TestOption func(*Test)
func NewTest(opts ...TestOption) *Test {
o := &Test{
Name: "bobby",
Statement: jen.Id("lol"),
}
for _, opt := range opts {
opt(o)
}
return o
}
func WithName(x string) TestOption {
return func(o *Test) {
o.Name = x
}
}
func WithProfiles(x []map[string]interface{}) TestOption {
return func(o *Test) {
o.Profiles = x
}
}
func WithStatement(x *jen.Statement) TestOption {
return func(o *Test) {
o.Statement = x
}
}
func WithA(x bytes.Buffer) TestOption {
return func(o *Test) {
o.a = x
}
}
func WithB(x map[time.Time]*time.Time) TestOption {
return func(o *Test) {
o.b = x
}
}
func WithBounds(x *Bounds) TestOption {
return func(o *Test) {
o.bounds = x
}
}
func WithC(x *gob.Encoder) TestOption {
return func(o *Test) {
o.c = x
}
}