for testing
(ctx context.Context)
| 99 | |
| 100 | // for testing |
| 101 | func (ws *WshServer) StreamTestCommand(ctx context.Context) chan wshrpc.RespOrErrorUnion[int] { |
| 102 | rtn := make(chan wshrpc.RespOrErrorUnion[int]) |
| 103 | go func() { |
| 104 | defer func() { |
| 105 | panichandler.PanicHandler("StreamTestCommand", recover()) |
| 106 | }() |
| 107 | for i := 1; i <= 5; i++ { |
| 108 | rtn <- wshrpc.RespOrErrorUnion[int]{Response: i} |
| 109 | time.Sleep(1 * time.Second) |
| 110 | } |
| 111 | close(rtn) |
| 112 | }() |
| 113 | return rtn |
| 114 | } |
| 115 | |
| 116 | func MakePlotData(ctx context.Context, blockId string) error { |
| 117 | block, err := wstore.DBMustGet[*waveobj.Block](ctx, blockId) |
nothing calls this directly
no test coverage detected