//go:build test && dev package dav import ( "os" "testing" "crussell/db" "crussell/testutils/testdb" ) var testSvc *BaseService func TestMain(m *testing.M) { pool := testdb.CreateTestDatabase("crussell_test_internal_dav") db.Conn = db.NewPoolProxy(pool) testdb.SeedBaseline(pool) testSvc = newBaseService(pool) code := m.Run() testdb.DestroyTestDatabase(pool, "crussell_test_internal_dav") os.Exit(code) }