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
115
116
117
|
// Code generated by SQLBoiler 4.16.1 (https://github.com/volatiletech/sqlboiler). DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package models
import "testing"
// This test suite runs each operation test in parallel.
// Example, if your database has 3 tables, the suite will run:
// table1, table2 and table3 Delete in parallel
// table1, table2 and table3 Insert in parallel, and so forth.
// It does NOT run each operation group in parallel.
// Separating the tests thusly grants avoidance of Postgres deadlocks.
func TestParent(t *testing.T) {
t.Run("Posts", testPosts)
t.Run("Tags", testTags)
t.Run("Users", testUsers)
}
func TestDelete(t *testing.T) {
t.Run("Posts", testPostsDelete)
t.Run("Tags", testTagsDelete)
t.Run("Users", testUsersDelete)
}
func TestQueryDeleteAll(t *testing.T) {
t.Run("Posts", testPostsQueryDeleteAll)
t.Run("Tags", testTagsQueryDeleteAll)
t.Run("Users", testUsersQueryDeleteAll)
}
func TestSliceDeleteAll(t *testing.T) {
t.Run("Posts", testPostsSliceDeleteAll)
t.Run("Tags", testTagsSliceDeleteAll)
t.Run("Users", testUsersSliceDeleteAll)
}
func TestExists(t *testing.T) {
t.Run("Posts", testPostsExists)
t.Run("Tags", testTagsExists)
t.Run("Users", testUsersExists)
}
func TestFind(t *testing.T) {
t.Run("Posts", testPostsFind)
t.Run("Tags", testTagsFind)
t.Run("Users", testUsersFind)
}
func TestBind(t *testing.T) {
t.Run("Posts", testPostsBind)
t.Run("Tags", testTagsBind)
t.Run("Users", testUsersBind)
}
func TestOne(t *testing.T) {
t.Run("Posts", testPostsOne)
t.Run("Tags", testTagsOne)
t.Run("Users", testUsersOne)
}
func TestAll(t *testing.T) {
t.Run("Posts", testPostsAll)
t.Run("Tags", testTagsAll)
t.Run("Users", testUsersAll)
}
func TestCount(t *testing.T) {
t.Run("Posts", testPostsCount)
t.Run("Tags", testTagsCount)
t.Run("Users", testUsersCount)
}
func TestHooks(t *testing.T) {
t.Run("Posts", testPostsHooks)
t.Run("Tags", testTagsHooks)
t.Run("Users", testUsersHooks)
}
func TestInsert(t *testing.T) {
t.Run("Posts", testPostsInsert)
t.Run("Posts", testPostsInsertWhitelist)
t.Run("Tags", testTagsInsert)
t.Run("Tags", testTagsInsertWhitelist)
t.Run("Users", testUsersInsert)
t.Run("Users", testUsersInsertWhitelist)
}
func TestReload(t *testing.T) {
t.Run("Posts", testPostsReload)
t.Run("Tags", testTagsReload)
t.Run("Users", testUsersReload)
}
func TestReloadAll(t *testing.T) {
t.Run("Posts", testPostsReloadAll)
t.Run("Tags", testTagsReloadAll)
t.Run("Users", testUsersReloadAll)
}
func TestSelect(t *testing.T) {
t.Run("Posts", testPostsSelect)
t.Run("Tags", testTagsSelect)
t.Run("Users", testUsersSelect)
}
func TestUpdate(t *testing.T) {
t.Run("Posts", testPostsUpdate)
t.Run("Tags", testTagsUpdate)
t.Run("Users", testUsersUpdate)
}
func TestSliceUpdateAll(t *testing.T) {
t.Run("Posts", testPostsSliceUpdateAll)
t.Run("Tags", testTagsSliceUpdateAll)
t.Run("Users", testUsersSliceUpdateAll)
}
|