158 lines
4.2 KiB
Go
158 lines
4.2 KiB
Go
// Code generated by SQLBoiler 3.6.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("Schemas", testSchemas)
|
|
t.Run("Sessions", testSessions)
|
|
t.Run("Users", testUsers)
|
|
}
|
|
|
|
func TestDelete(t *testing.T) {
|
|
t.Run("Schemas", testSchemasDelete)
|
|
t.Run("Sessions", testSessionsDelete)
|
|
t.Run("Users", testUsersDelete)
|
|
}
|
|
|
|
func TestQueryDeleteAll(t *testing.T) {
|
|
t.Run("Schemas", testSchemasQueryDeleteAll)
|
|
t.Run("Sessions", testSessionsQueryDeleteAll)
|
|
t.Run("Users", testUsersQueryDeleteAll)
|
|
}
|
|
|
|
func TestSliceDeleteAll(t *testing.T) {
|
|
t.Run("Schemas", testSchemasSliceDeleteAll)
|
|
t.Run("Sessions", testSessionsSliceDeleteAll)
|
|
t.Run("Users", testUsersSliceDeleteAll)
|
|
}
|
|
|
|
func TestExists(t *testing.T) {
|
|
t.Run("Schemas", testSchemasExists)
|
|
t.Run("Sessions", testSessionsExists)
|
|
t.Run("Users", testUsersExists)
|
|
}
|
|
|
|
func TestFind(t *testing.T) {
|
|
t.Run("Schemas", testSchemasFind)
|
|
t.Run("Sessions", testSessionsFind)
|
|
t.Run("Users", testUsersFind)
|
|
}
|
|
|
|
func TestBind(t *testing.T) {
|
|
t.Run("Schemas", testSchemasBind)
|
|
t.Run("Sessions", testSessionsBind)
|
|
t.Run("Users", testUsersBind)
|
|
}
|
|
|
|
func TestOne(t *testing.T) {
|
|
t.Run("Schemas", testSchemasOne)
|
|
t.Run("Sessions", testSessionsOne)
|
|
t.Run("Users", testUsersOne)
|
|
}
|
|
|
|
func TestAll(t *testing.T) {
|
|
t.Run("Schemas", testSchemasAll)
|
|
t.Run("Sessions", testSessionsAll)
|
|
t.Run("Users", testUsersAll)
|
|
}
|
|
|
|
func TestCount(t *testing.T) {
|
|
t.Run("Schemas", testSchemasCount)
|
|
t.Run("Sessions", testSessionsCount)
|
|
t.Run("Users", testUsersCount)
|
|
}
|
|
|
|
func TestHooks(t *testing.T) {
|
|
t.Run("Schemas", testSchemasHooks)
|
|
t.Run("Sessions", testSessionsHooks)
|
|
t.Run("Users", testUsersHooks)
|
|
}
|
|
|
|
func TestInsert(t *testing.T) {
|
|
t.Run("Schemas", testSchemasInsert)
|
|
t.Run("Schemas", testSchemasInsertWhitelist)
|
|
t.Run("Sessions", testSessionsInsert)
|
|
t.Run("Sessions", testSessionsInsertWhitelist)
|
|
t.Run("Users", testUsersInsert)
|
|
t.Run("Users", testUsersInsertWhitelist)
|
|
}
|
|
|
|
// 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("Schemas", testSchemasReload)
|
|
t.Run("Sessions", testSessionsReload)
|
|
t.Run("Users", testUsersReload)
|
|
}
|
|
|
|
func TestReloadAll(t *testing.T) {
|
|
t.Run("Schemas", testSchemasReloadAll)
|
|
t.Run("Sessions", testSessionsReloadAll)
|
|
t.Run("Users", testUsersReloadAll)
|
|
}
|
|
|
|
func TestSelect(t *testing.T) {
|
|
t.Run("Schemas", testSchemasSelect)
|
|
t.Run("Sessions", testSessionsSelect)
|
|
t.Run("Users", testUsersSelect)
|
|
}
|
|
|
|
func TestUpdate(t *testing.T) {
|
|
t.Run("Schemas", testSchemasUpdate)
|
|
t.Run("Sessions", testSessionsUpdate)
|
|
t.Run("Users", testUsersUpdate)
|
|
}
|
|
|
|
func TestSliceUpdateAll(t *testing.T) {
|
|
t.Run("Schemas", testSchemasSliceUpdateAll)
|
|
t.Run("Sessions", testSessionsSliceUpdateAll)
|
|
t.Run("Users", testUsersSliceUpdateAll)
|
|
}
|