(t *testing.T)
| 58 | } |
| 59 | |
| 60 | func TestHandleWrite_Validation(t *testing.T) { |
| 61 | e, _, _ := newWsEngine(t) |
| 62 | if err := e.Execute(context.Background(), "write", []string{"--content", "x"}); err == nil { |
| 63 | t.Error("expected error for missing --file") |
| 64 | } |
| 65 | if err := e.Execute(context.Background(), "write", []string{"--file", "f.txt"}); err == nil { |
| 66 | t.Error("expected error for empty --content") |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func TestHandleWrite_DecodeError(t *testing.T) { |
| 71 | e, _, root := newWsEngine(t) |
nothing calls this directly
no test coverage detected