diff options
| author | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 01:40:39 -0500 |
|---|---|---|
| committer | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 01:40:39 -0500 |
| commit | 8510c36ded85740885e67b59ee2ec2360986c0a9 (patch) | |
| tree | c8c4c70458bb65b0ee134f80cb364db851e9c7a2 /src/models/boil_suites_test.go | |
| parent | f329e7f2095a57967bfe86563401236d53a15924 (diff) | |
new tables: tags, post_tags, generated sqlboiler tags model, updated posts/get template, updated posts table to take nullable description and user_id foreign key
Diffstat (limited to 'src/models/boil_suites_test.go')
| -rw-r--r-- | src/models/boil_suites_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/models/boil_suites_test.go b/src/models/boil_suites_test.go index d1e1758..33d14ea 100644 --- a/src/models/boil_suites_test.go +++ b/src/models/boil_suites_test.go @@ -13,87 +13,105 @@ import "testing" // 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) } |
