(t *testing.T)
| 246 | } |
| 247 | |
| 248 | func 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 | |
| 261 | func TestAPITracesList(t *testing.T) { |
| 262 | mux := http.NewServeMux() |
nothing calls this directly
no test coverage detected