mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
chore: avoid dbmock test errors in dbgen (#10923)
This commit is contained in:
8
coderd/database/gentest/doc.go
Normal file
8
coderd/database/gentest/doc.go
Normal 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
|
Reference in New Issue
Block a user