(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestSnapshotHandler_Method_POST(t *testing.T) { |
| 60 | t.Parallel() |
| 61 | req := httptest.NewRequest("POST", "/debug", nil) |
| 62 | w := httptest.NewRecorder() |
| 63 | SnapshotHandler(w, req) |
| 64 | if w.Code != 405 { |
| 65 | t.Fatalf("%d\n%s", w.Code, w.Body.String()) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestSnapshotHandler_LargeMemory(t *testing.T) { |
| 70 | // Try to create a stack frame over 1MiB in size when serialized to string. |
nothing calls this directly
no test coverage detected
searching dependent graphs…