-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathboil_suites_test.go
139 lines (110 loc) · 3.98 KB
/
boil_suites_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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Code generated by SQLBoiler 4.4.0 (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("LastSyncs", testLastSyncs)
t.Run("SchemaMigrations", testSchemaMigrations)
}
func TestDelete(t *testing.T) {
t.Run("LastSyncs", testLastSyncsDelete)
t.Run("SchemaMigrations", testSchemaMigrationsDelete)
}
func TestQueryDeleteAll(t *testing.T) {
t.Run("LastSyncs", testLastSyncsQueryDeleteAll)
t.Run("SchemaMigrations", testSchemaMigrationsQueryDeleteAll)
}
func TestSliceDeleteAll(t *testing.T) {
t.Run("LastSyncs", testLastSyncsSliceDeleteAll)
t.Run("SchemaMigrations", testSchemaMigrationsSliceDeleteAll)
}
func TestExists(t *testing.T) {
t.Run("LastSyncs", testLastSyncsExists)
t.Run("SchemaMigrations", testSchemaMigrationsExists)
}
func TestFind(t *testing.T) {
t.Run("LastSyncs", testLastSyncsFind)
t.Run("SchemaMigrations", testSchemaMigrationsFind)
}
func TestBind(t *testing.T) {
t.Run("LastSyncs", testLastSyncsBind)
t.Run("SchemaMigrations", testSchemaMigrationsBind)
}
func TestOne(t *testing.T) {
t.Run("LastSyncs", testLastSyncsOne)
t.Run("SchemaMigrations", testSchemaMigrationsOne)
}
func TestAll(t *testing.T) {
t.Run("LastSyncs", testLastSyncsAll)
t.Run("SchemaMigrations", testSchemaMigrationsAll)
}
func TestCount(t *testing.T) {
t.Run("LastSyncs", testLastSyncsCount)
t.Run("SchemaMigrations", testSchemaMigrationsCount)
}
func TestHooks(t *testing.T) {
t.Run("LastSyncs", testLastSyncsHooks)
t.Run("SchemaMigrations", testSchemaMigrationsHooks)
}
func TestInsert(t *testing.T) {
t.Run("LastSyncs", testLastSyncsInsert)
t.Run("LastSyncs", testLastSyncsInsertWhitelist)
t.Run("SchemaMigrations", testSchemaMigrationsInsert)
t.Run("SchemaMigrations", testSchemaMigrationsInsertWhitelist)
}
// TestToOne tests cannot be run in parallel
// or deadlocks can occur.
func TestToOne(t *testing.T) {}
// TestOneToOne tests cannot be run in parallel
// or deadlocks can occur.
func TestOneToOne(t *testing.T) {}
// TestToMany tests cannot be run in parallel
// or deadlocks can occur.
func TestToMany(t *testing.T) {}
// TestToOneSet tests cannot be run in parallel
// or deadlocks can occur.
func TestToOneSet(t *testing.T) {}
// TestToOneRemove tests cannot be run in parallel
// or deadlocks can occur.
func TestToOneRemove(t *testing.T) {}
// TestOneToOneSet tests cannot be run in parallel
// or deadlocks can occur.
func TestOneToOneSet(t *testing.T) {}
// TestOneToOneRemove tests cannot be run in parallel
// or deadlocks can occur.
func TestOneToOneRemove(t *testing.T) {}
// TestToManyAdd tests cannot be run in parallel
// or deadlocks can occur.
func TestToManyAdd(t *testing.T) {}
// TestToManySet tests cannot be run in parallel
// or deadlocks can occur.
func TestToManySet(t *testing.T) {}
// TestToManyRemove tests cannot be run in parallel
// or deadlocks can occur.
func TestToManyRemove(t *testing.T) {}
func TestReload(t *testing.T) {
t.Run("LastSyncs", testLastSyncsReload)
t.Run("SchemaMigrations", testSchemaMigrationsReload)
}
func TestReloadAll(t *testing.T) {
t.Run("LastSyncs", testLastSyncsReloadAll)
t.Run("SchemaMigrations", testSchemaMigrationsReloadAll)
}
func TestSelect(t *testing.T) {
t.Run("LastSyncs", testLastSyncsSelect)
t.Run("SchemaMigrations", testSchemaMigrationsSelect)
}
func TestUpdate(t *testing.T) {
t.Run("LastSyncs", testLastSyncsUpdate)
t.Run("SchemaMigrations", testSchemaMigrationsUpdate)
}
func TestSliceUpdateAll(t *testing.T) {
t.Run("LastSyncs", testLastSyncsSliceUpdateAll)
t.Run("SchemaMigrations", testSchemaMigrationsSliceUpdateAll)
}