MCPcopy Create free account
hub / github.com/bytebase/bytebase / newChangeTestServer

Function newChangeTestServer

backend/api/mcp/tool_change_test.go:150–157  ·  view source on GitHub ↗
(t *testing.T, mock *changeMock)

Source from the content-addressed store, hash-verified

148}
149
150func newChangeTestServer(t *testing.T, mock *changeMock) *Server {
151 t.Helper()
152 s := newTestServerWithMock(t, mock.handler())
153 s.profile.ExternalURL = "https://bytebase.example.com"
154 // Use a short poll budget to avoid 10s waits in tests.
155 s.planCheckPollBudgetOverride = 100 * time.Millisecond
156 return s
157}
158
159// --- Happy path tests ---
160

Calls 2

newTestServerWithMockFunction · 0.85
handlerMethod · 0.45

Tested by

no test coverage detected