(ctx context.Context, arg1 string, arg2 int, arg3 bool)
| 82 | } |
| 83 | |
| 84 | func (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 |
| 95 | func (ws *WshServer) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error { |
nothing calls this directly
no test coverage detected