MCPcopy Create free account
hub / github.com/buggregator/server / TestAPITraceDetailNotFound

Function TestAPITraceDetailNotFound

modules/sentry/api_test.go:336–347  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

334}
335
336func TestAPITraceDetailNotFound(t *testing.T) {
337 mux := http.NewServeMux()
338 seedTestData(t, mux)
339
340 req := httptest.NewRequest("GET", "/api/sentry/traces/nonexistent", nil)
341 w := httptest.NewRecorder()
342 mux.ServeHTTP(w, req)
343
344 if w.Code != 404 {
345 t.Fatalf("status = %d, want 404", w.Code)
346 }
347}
348
349func TestAPILogsList(t *testing.T) {
350 mux := http.NewServeMux()

Callers

nothing calls this directly

Calls 2

seedTestDataFunction · 0.85
ServeHTTPMethod · 0.80

Tested by

no test coverage detected