(t *testing.T, pg bool)
| 14 | const commitmentPGMigration = "131_commitment_dates.sql" |
| 15 | |
| 16 | func commitmentSQL(t *testing.T, pg bool) string { |
| 17 | t.Helper() |
| 18 | fs, path := migrationsFS, "migrations/"+commitmentMigration |
| 19 | if pg { |
| 20 | fs, path = pgMigrationsFS, "pgmigrations/"+commitmentPGMigration |
| 21 | } |
| 22 | b, err := fs.ReadFile(path) |
| 23 | if err != nil { |
| 24 | t.Fatal(err) |
| 25 | } |
| 26 | return string(b) |
| 27 | } |
| 28 | |
| 29 | func commitmentPreStore(t *testing.T) *Store { |
| 30 | t.Helper() |
no test coverage detected