(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestResolveCommand_SimpleCommand(t *testing.T) { |
| 100 | t.Parallel() |
| 101 | |
| 102 | rt := &mockRuntime{ |
| 103 | commands: types.Commands{ |
| 104 | "test": types.Command{Instruction: "This is the test instruction"}, |
| 105 | }, |
| 106 | } |
| 107 | |
| 108 | result := ResolveCommand(t.Context(), rt, "/test") |
| 109 | assert.Equal(t, "This is the test instruction", result) |
| 110 | } |
| 111 | |
| 112 | func TestResolveCommand_CommandNotFound(t *testing.T) { |
| 113 | t.Parallel() |
nothing calls this directly
no test coverage detected