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

Function TestAPIExceptionDetailNotFound

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

Source from the content-addressed store, hash-verified

246}
247
248func TestAPIExceptionDetailNotFound(t *testing.T) {
249 mux := http.NewServeMux()
250 seedTestData(t, mux)
251
252 req := httptest.NewRequest("GET", "/api/sentry/exceptions/nonexistent", nil)
253 w := httptest.NewRecorder()
254 mux.ServeHTTP(w, req)
255
256 if w.Code != 404 {
257 t.Fatalf("status = %d, want 404", w.Code)
258 }
259}
260
261func TestAPITracesList(t *testing.T) {
262 mux := http.NewServeMux()

Callers

nothing calls this directly

Calls 2

seedTestDataFunction · 0.85
ServeHTTPMethod · 0.80

Tested by

no test coverage detected