MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TruncateAll

Function TruncateAll

internal/testutil/db.go:69–75  ·  view source on GitHub ↗
(t *testing.T, pool *pgxpool.Pool)

Source from the content-addressed store, hash-verified

67}
68
69func TruncateAll(t *testing.T, pool *pgxpool.Pool) {
70 t.Helper()
71 err := truncateAll(context.Background(), pool)
72 if err != nil {
73 t.Fatalf("failed to truncate tables: %v", err)
74 }
75}
76
77func runMigrations(ctx context.Context, pool *pgxpool.Pool) error {
78 migrationsDir := filepath.Join(projectRoot(), "migrations")

Callers 1

TestDBFunction · 0.85

Calls 1

truncateAllFunction · 0.85

Tested by 1

TestDBFunction · 0.68