aboutsummaryrefslogtreecommitdiff
path: root/src/models/boil_suites_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/boil_suites_test.go')
-rw-r--r--src/models/boil_suites_test.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/models/boil_suites_test.go b/src/models/boil_suites_test.go
index 33d14ea..0e93567 100644
--- a/src/models/boil_suites_test.go
+++ b/src/models/boil_suites_test.go
@@ -12,106 +12,142 @@ import "testing"
// 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("Comments", testComments)
t.Run("Posts", testPosts)
t.Run("Tags", testTags)
t.Run("Users", testUsers)
+ t.Run("Votes", testVotes)
}
func TestDelete(t *testing.T) {
+ t.Run("Comments", testCommentsDelete)
t.Run("Posts", testPostsDelete)
t.Run("Tags", testTagsDelete)
t.Run("Users", testUsersDelete)
+ t.Run("Votes", testVotesDelete)
}
func TestQueryDeleteAll(t *testing.T) {
+ t.Run("Comments", testCommentsQueryDeleteAll)
t.Run("Posts", testPostsQueryDeleteAll)
t.Run("Tags", testTagsQueryDeleteAll)
t.Run("Users", testUsersQueryDeleteAll)
+ t.Run("Votes", testVotesQueryDeleteAll)
}
func TestSliceDeleteAll(t *testing.T) {
+ t.Run("Comments", testCommentsSliceDeleteAll)
t.Run("Posts", testPostsSliceDeleteAll)
t.Run("Tags", testTagsSliceDeleteAll)
t.Run("Users", testUsersSliceDeleteAll)
+ t.Run("Votes", testVotesSliceDeleteAll)
}
func TestExists(t *testing.T) {
+ t.Run("Comments", testCommentsExists)
t.Run("Posts", testPostsExists)
t.Run("Tags", testTagsExists)
t.Run("Users", testUsersExists)
+ t.Run("Votes", testVotesExists)
}
func TestFind(t *testing.T) {
+ t.Run("Comments", testCommentsFind)
t.Run("Posts", testPostsFind)
t.Run("Tags", testTagsFind)
t.Run("Users", testUsersFind)
+ t.Run("Votes", testVotesFind)
}
func TestBind(t *testing.T) {
+ t.Run("Comments", testCommentsBind)
t.Run("Posts", testPostsBind)
t.Run("Tags", testTagsBind)
t.Run("Users", testUsersBind)
+ t.Run("Votes", testVotesBind)
}
func TestOne(t *testing.T) {
+ t.Run("Comments", testCommentsOne)
t.Run("Posts", testPostsOne)
t.Run("Tags", testTagsOne)
t.Run("Users", testUsersOne)
+ t.Run("Votes", testVotesOne)
}
func TestAll(t *testing.T) {
+ t.Run("Comments", testCommentsAll)
t.Run("Posts", testPostsAll)
t.Run("Tags", testTagsAll)
t.Run("Users", testUsersAll)
+ t.Run("Votes", testVotesAll)
}
func TestCount(t *testing.T) {
+ t.Run("Comments", testCommentsCount)
t.Run("Posts", testPostsCount)
t.Run("Tags", testTagsCount)
t.Run("Users", testUsersCount)
+ t.Run("Votes", testVotesCount)
}
func TestHooks(t *testing.T) {
+ t.Run("Comments", testCommentsHooks)
t.Run("Posts", testPostsHooks)
t.Run("Tags", testTagsHooks)
t.Run("Users", testUsersHooks)
+ t.Run("Votes", testVotesHooks)
}
func TestInsert(t *testing.T) {
+ t.Run("Comments", testCommentsInsert)
+ t.Run("Comments", testCommentsInsertWhitelist)
t.Run("Posts", testPostsInsert)
t.Run("Posts", testPostsInsertWhitelist)
t.Run("Tags", testTagsInsert)
t.Run("Tags", testTagsInsertWhitelist)
t.Run("Users", testUsersInsert)
t.Run("Users", testUsersInsertWhitelist)
+ t.Run("Votes", testVotesInsert)
+ t.Run("Votes", testVotesInsertWhitelist)
}
func TestReload(t *testing.T) {
+ t.Run("Comments", testCommentsReload)
t.Run("Posts", testPostsReload)
t.Run("Tags", testTagsReload)
t.Run("Users", testUsersReload)
+ t.Run("Votes", testVotesReload)
}
func TestReloadAll(t *testing.T) {
+ t.Run("Comments", testCommentsReloadAll)
t.Run("Posts", testPostsReloadAll)
t.Run("Tags", testTagsReloadAll)
t.Run("Users", testUsersReloadAll)
+ t.Run("Votes", testVotesReloadAll)
}
func TestSelect(t *testing.T) {
+ t.Run("Comments", testCommentsSelect)
t.Run("Posts", testPostsSelect)
t.Run("Tags", testTagsSelect)
t.Run("Users", testUsersSelect)
+ t.Run("Votes", testVotesSelect)
}
func TestUpdate(t *testing.T) {
+ t.Run("Comments", testCommentsUpdate)
t.Run("Posts", testPostsUpdate)
t.Run("Tags", testTagsUpdate)
t.Run("Users", testUsersUpdate)
+ t.Run("Votes", testVotesUpdate)
}
func TestSliceUpdateAll(t *testing.T) {
+ t.Run("Comments", testCommentsSliceUpdateAll)
t.Run("Posts", testPostsSliceUpdateAll)
t.Run("Tags", testTagsSliceUpdateAll)
t.Run("Users", testUsersSliceUpdateAll)
+ t.Run("Votes", testVotesSliceUpdateAll)
}