chore: generate and order dbfake funcs automatically (#7986)

* chore: rename `databasefake` to `dbfake`

* Remove unused method

* chore: add generation to dbfake

* Auto gen on make gen

* Fix preserving imports

* gen dbfake

* Add goimports

* Fix the makefile

* Make it panic instead of a comment
This commit is contained in:
Kyle Carberry
2023-06-12 17:40:58 -05:00
committed by GitHub
parent 685abfc6d7
commit 28f35393e7
6 changed files with 4103 additions and 3785 deletions

View File

@ -58,4 +58,8 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
# Generate enums (e.g. unique constraints).
go run gen/enum/main.go
# Generate the database fake!
go run gen/fake/main.go
go run golang.org/x/tools/cmd/goimports@latest -w ./dbfake/dbfake.go
)