codegen: move generated test helpers to new 'db_test.go' file
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 22s

This commit is contained in:
2026-02-15 14:48:49 -08:00
parent ee1d0a5ed7
commit 8ab21edae9
4 changed files with 31 additions and 75 deletions

View File

@@ -1,5 +1,7 @@
package flowutils
import "io"
func PanicIf(err error) {
if err != nil {
panic(err)
@@ -10,3 +12,7 @@ func Must[T any](val T, err error) T {
PanicIf(err)
return val
}
func MustClose(closer io.Closer) {
PanicIf(closer.Close())
}