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

Function TestLoad_UnsupportedTelemetryExporter

internal/config/config_test.go:210–231  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

208}
209
210func TestLoad_UnsupportedTelemetryExporter(t *testing.T) {
211 cfgPath := writeTempConfig(t, `
212telemetry:
213 exporter: unsupported-kind
214backends:
215 - name: b1
216 type: mock
217 timeout_ms: 100
218 cost: { unit: 1, currency: credit }
219tenants:
220 - id: t1
221routing:
222 default_backend: b1
223reliability:
224 fallback_enabled: false
225`)
226
227 _, err := Load(cfgPath)
228 if err == nil || !strings.Contains(err.Error(), "unsupported telemetry exporter") {
229 t.Fatalf("expected unsupported telemetry exporter error, got: %v", err)
230 }
231}
232
233func TestLoad_OTLPHTTPRequiresEndpoint(t *testing.T) {
234 cfgPath := writeTempConfig(t, `

Callers

nothing calls this directly

Calls 3

writeTempConfigFunction · 0.85
LoadFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected