MCPcopy Create free account
hub / github.com/InferCore/InferCore / testConfigOpenAIEndpoint

Function testConfigOpenAIEndpoint

internal/server/server_test.go:311–317  ·  view source on GitHub ↗
(t *testing.T, endpoint string)

Source from the content-addressed store, hash-verified

309}
310
311func testConfigOpenAIEndpoint(t *testing.T, endpoint string) *config.Config {
312 t.Helper()
313 cfg := testConfig(100, true)
314 cfg.Backends[0].Type = "openai_compatible"
315 cfg.Backends[0].Endpoint = endpoint
316 return cfg
317}
318
319func TestInfer_StreamUpstreamJSON_DegradeFlagInResponse(t *testing.T) {
320 up := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Calls 1

testConfigFunction · 0.70

Tested by

no test coverage detected