Commit da375e2
test: cover the flag-off gating and non-enumerable completion cases
The completion bundle tested the flag-on behaviours but not two things worth
guaranteeing: that grammar completion stays suppressed when the experimental
engine is off (the gating contract), and that a non-enumerable next token
(number/regex) offers nothing rather than crashing or suggesting junk.
- GrammarValueCompletionTest.testFlagOffOffersNoGrammarCompletions: flag off, the
AF_IN partial yields no AF_* names (the flag-on path's suggestions are absent).
- NextTokenChoicesTest.testNonEnumerableNextTokenOffersNothing: an IntegerTerminal
port grammar returns an empty choice set.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e40c8ed commit da375e2
2 files changed
Lines changed: 17 additions & 0 deletions
File tree
- src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles
- completion
- semanticdata/optionvalues/grammar
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
0 commit comments