-
Notifications
You must be signed in to change notification settings - Fork 0
/
funcmap_test.go
80 lines (65 loc) · 1.49 KB
/
funcmap_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
package main
import "testing"
func TestCreateSelectByPkScan(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
sql := createSelectByPkScan(s)
t.Logf("%s", sql)
}
}
func TestCreateSelectByPkSQLParams(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
sql := createSelectByPkSQLParams(s)
t.Logf("%s", sql)
}
}
func TestCreatePkParams(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
sql := createSelectByPkFuncParams(s)
t.Logf("%s", sql)
}
}
func TestCreateSelectByPkSQL(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
sql := createSelectByPkSQL(s)
t.Logf("%s", sql)
}
}
func TestCreateInsertSQL(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
sql := createInsertSQL(s)
t.Logf("%s", sql)
}
}
func TestCreateInsertParams(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
params := createInsertParams(s)
t.Logf("%s", params)
}
}
func TestCreateInsertScan(t *testing.T) {
conn, cleanup := testPgSetup(t)
defer cleanup()
sts := testSetupStruct(t, conn)
for _, s := range sts {
params := createInsertScan(s)
t.Logf("%s", params)
}
}