Files
coder/coderd/aibridged
Ethan c95f3a58f9 chore: remove the remaining export_test.go shims (#32434)
Closes CODAGT-1607

Follow-up to #32162, which left 5 `export_test.go` shims behind:
`coderd`, `aibridged`, `chatd`, `chatstate` and `mcpclient`. This PR
removes them. It's stacked on #32433, which deals with the chat
workspace functions in `coderd`.

Same approach as before. Tests of package internals are now
`*_internal_test.go` files, with no changes beyond what the move forces,
and tests that only needed a constant just use the value. `chatstate`
needed one small accessor, so `AllowedExecutionTransitionOutputs` is
just exported for real, and its tests stay where they were.
Unfortunately the `mcpclient` connect budget test needs an unexported
timeout, so it moved to an internal file and builds its own server
there.

I've removed `TestConnectAll_LateServerReaped`,
`TestAllExecutionStates_Enumeration` and a few assertions instead of
moving them, as I couldn't find a breakage that only they would catch.

While here, I've dropped the test-only `reaperDone` hook from
`mcpclient`. The wait for a connect to finish within its budget is now a
small function of its own, with a test that a session which connects too
late still gets closed. Nothing checked that before.

With no shims left, the `testpackage` path exclusion is gone, so a new
`export_test.go` now fails lint.
2026-12-01 00:17:20 +11:00
..