MCPcopy
hub / github.com/wavetermdev/waveterm / TestCommand

Method TestCommand

pkg/wshrpc/wshserver/wshserver.go:75–82  ·  view source on GitHub ↗
(ctx context.Context, data string)

Source from the content-addressed store, hash-verified

73}
74
75func (ws *WshServer) TestCommand(ctx context.Context, data string) error {
76 defer func() {
77 panichandler.PanicHandler("TestCommand", recover())
78 }()
79 rpcSource := wshutil.GetRpcSourceFromContext(ctx)
80 log.Printf("TEST src:%s | %s\n", rpcSource, data)
81 return nil
82}
83
84func (ws *WshServer) TestMultiArgCommand(ctx context.Context, arg1 string, arg2 int, arg3 bool) (string, error) {
85 defer func() {

Callers

nothing calls this directly

Calls 2

PanicHandlerFunction · 0.92
GetRpcSourceFromContextFunction · 0.92

Tested by

no test coverage detected