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

Method TestMultiArgCommand

pkg/wshrpc/wshserver/wshserver.go:84–92  ·  view source on GitHub ↗
(ctx context.Context, arg1 string, arg2 int, arg3 bool)

Source from the content-addressed store, hash-verified

82}
83
84func (ws *WshServer) TestMultiArgCommand(ctx context.Context, arg1 string, arg2 int, arg3 bool) (string, error) {
85 defer func() {
86 panichandler.PanicHandler("TestMultiArgCommand", recover())
87 }()
88 rpcSource := wshutil.GetRpcSourceFromContext(ctx)
89 rtn := fmt.Sprintf("src:%s arg1:%q arg2:%d arg3:%t", rpcSource, arg1, arg2, arg3)
90 log.Printf("TESTMULTI %s\n", rtn)
91 return rtn, nil
92}
93
94// for testing
95func (ws *WshServer) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error {

Callers

nothing calls this directly

Calls 2

PanicHandlerFunction · 0.92
GetRpcSourceFromContextFunction · 0.92

Tested by

no test coverage detected