beads/internal/testutil
mayor 408333ffdb fix: firewall test databases from production Dolt server (Clown Shows #12-#18)
Three layers of defense against test pollution on production port 3307:

1. store.go: isTestDatabaseName() pattern-based guard refuses to CREATE DATABASE
   for any test-prefixed name on DefaultSQLPort (3307). Not env-var dependent.

2. testdoltserver.go: StartTestDoltServer now refuses to reuse port 3307
   regardless of BEADS_TEST_MODE setting. Previous code only checked when
   BEADS_TEST_MODE=1, but TestMain sets that AFTER calling StartTestDoltServer.

3. testdoltbranch.go: SetupSharedTestDB refuses to connect to port 3307.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 19:49:55 -08:00
..
fixtures chore: clean up stale SQLite references in comments (bd-nlw2m) 2026-02-18 11:50:52 -08:00
testdoltbranch.go fix: firewall test databases from production Dolt server (Clown Shows #12-#18) 2026-02-25 19:49:55 -08:00
testdoltserver.go fix: firewall test databases from production Dolt server (Clown Shows #12-#18) 2026-02-25 19:49:55 -08:00
tmpfs.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
tmpfs_test.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00