From 1e6174f828802e9b3e4b25d4cc0e8f6ee7f4e8e1 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 17 Apr 2022 23:54:52 +0300 Subject: [PATCH] Add test panic command --- ui/command-processor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/command-processor.go b/ui/command-processor.go index 09cdaa9..ae0e2e1 100644 --- a/ui/command-processor.go +++ b/ui/command-processor.go @@ -168,6 +168,9 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "hprof": cmdHeapProfile, "cprof": cmdCPUProfile, "trace": cmdTrace, + "panic": func(cmd *Command) { + panic("hello world") + }, "rainbownotice": cmdRainbowNotice,