MCPcopy Index your code
hub / github.com/maruel/panicparse / TestSnapshotHandler_Method_POST

Function TestSnapshotHandler_Method_POST

stack/webstack/webstack_test.go:59–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func 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
69func TestSnapshotHandler_LargeMemory(t *testing.T) {
70 // Try to create a stack frame over 1MiB in size when serialized to string.

Callers

nothing calls this directly

Calls 2

SnapshotHandlerFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…