-
Notifications
You must be signed in to change notification settings - Fork 0
/
fakeit_test.go
98 lines (82 loc) · 1.74 KB
/
fakeit_test.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
package fakeit
import (
"fmt"
"github.com/go-openapi/strfmt"
)
type StatusVal int
type BigLebowski struct {
Name string
Age int
Derps strfmt.CreditCard
Slice []strfmt.Password
}
type testStruct struct {
Date strfmt.Date
DateTime strfmt.DateTime
Duration strfmt.Duration
Email strfmt.Email
Base64 strfmt.Base64
URI strfmt.URI
Hostname strfmt.Hostname
IPv4 strfmt.IPv4
IPv6 strfmt.IPv6
MAC strfmt.MAC
UUID strfmt.UUID
UUID3 strfmt.UUID3
UUID4 strfmt.UUID4
UUID5 strfmt.UUID5
ISBN strfmt.ISBN
ISBN10 strfmt.ISBN10
ISBN13 strfmt.ISBN13
CreditCard strfmt.CreditCard
SSN strfmt.SSN
HexColor strfmt.HexColor
RGBColor strfmt.RGBColor
Password strfmt.Password
Bool bool
String string
Int int
Int8 int8
Int16 int16
Int32 int32
Int64 int64
Uint uint
Uint8 uint8
Uint16 uint16
Uint32 uint32
Uint64 uint64
Uintptr uintptr
Float32 float32
Float64 float64
Complex64 complex64
Complex128 complex128
Array [2]strfmt.Password
PtrArray [2]*strfmt.Password
PtrSlice []*strfmt.Password
Slice []BigLebowski
PtrMap map[string]*BigLebowski
Map map[string]BigLebowski
// Chan chan int
Interface interface{}
Ptr *int
PtrStruct *BigLebowski
Struct BigLebowski
StatusVal StatusVal
}
type DunWork struct {
Ptr *int
PtrStruct *BigLebowski
Array [2]strfmt.Password
Slice []BigLebowski
PtrSlice []*strfmt.Password
PtrArray [2]*strfmt.Password
Map map[string]BigLebowski
MapPtr map[string]*BigLebowski
}
func main() {
// test := DunWork{}
test := testStruct{}
FillStruct(&test)
fmt.Println("main")
fmt.Printf("%+v\n", test)
}