140 lines
3.8 KiB
Go
140 lines
3.8 KiB
Go
// Code generated by SQLBoiler 4.8.3 (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("GorpMigrations", testGorpMigrations)
|
|
t.Run("Headers", testHeaders)
|
|
}
|
|
|
|
func TestDelete(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsDelete)
|
|
t.Run("Headers", testHeadersDelete)
|
|
}
|
|
|
|
func TestQueryDeleteAll(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsQueryDeleteAll)
|
|
t.Run("Headers", testHeadersQueryDeleteAll)
|
|
}
|
|
|
|
func TestSliceDeleteAll(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsSliceDeleteAll)
|
|
t.Run("Headers", testHeadersSliceDeleteAll)
|
|
}
|
|
|
|
func TestExists(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsExists)
|
|
t.Run("Headers", testHeadersExists)
|
|
}
|
|
|
|
func TestFind(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsFind)
|
|
t.Run("Headers", testHeadersFind)
|
|
}
|
|
|
|
func TestBind(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsBind)
|
|
t.Run("Headers", testHeadersBind)
|
|
}
|
|
|
|
func TestOne(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsOne)
|
|
t.Run("Headers", testHeadersOne)
|
|
}
|
|
|
|
func TestAll(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsAll)
|
|
t.Run("Headers", testHeadersAll)
|
|
}
|
|
|
|
func TestCount(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsCount)
|
|
t.Run("Headers", testHeadersCount)
|
|
}
|
|
|
|
func TestHooks(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsHooks)
|
|
t.Run("Headers", testHeadersHooks)
|
|
}
|
|
|
|
func TestInsert(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsInsert)
|
|
t.Run("GorpMigrations", testGorpMigrationsInsertWhitelist)
|
|
t.Run("Headers", testHeadersInsert)
|
|
t.Run("Headers", testHeadersInsertWhitelist)
|
|
}
|
|
|
|
// 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("GorpMigrations", testGorpMigrationsReload)
|
|
t.Run("Headers", testHeadersReload)
|
|
}
|
|
|
|
func TestReloadAll(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsReloadAll)
|
|
t.Run("Headers", testHeadersReloadAll)
|
|
}
|
|
|
|
func TestSelect(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsSelect)
|
|
t.Run("Headers", testHeadersSelect)
|
|
}
|
|
|
|
func TestUpdate(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsUpdate)
|
|
t.Run("Headers", testHeadersUpdate)
|
|
}
|
|
|
|
func TestSliceUpdateAll(t *testing.T) {
|
|
t.Run("GorpMigrations", testGorpMigrationsSliceUpdateAll)
|
|
t.Run("Headers", testHeadersSliceUpdateAll)
|
|
}
|