(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestAutocompleteRenderWidth(t *testing.T) { |
| 51 | t.Parallel() |
| 52 | a := newAutocomplete() |
| 53 | a.setCommands(testCommands()) |
| 54 | require.True(t, a.sync("/")) |
| 55 | rows := a.render(60) |
| 56 | assert.NotEmpty(t, rows) |
| 57 | for _, r := range rows { |
| 58 | assert.LessOrEqual(t, displayWidth(r), 60) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestAutocompleteBuiltinsBeforeAgent(t *testing.T) { |
| 63 | t.Parallel() |
nothing calls this directly
no test coverage detected