chore: avoid dbmock test errors in dbgen (#10923)

This commit is contained in:
Dean Sheather
2023-11-29 03:04:25 +10:00
committed by GitHub
parent 14bd489af6
commit 452668c893
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,8 @@
// Package gentest contains tests that are run at db generate time. These tests
// need to exist in their own package to avoid importing stuff that gets
// generated after the DB.
//
// E.g. if we put these tests in coderd/database, then we'd be importing dbmock
// which is generated after the DB and can cause type problems when building
// the tests.
package gentest