gopls/internal/test/marker/testdata/modfile/godebug_bad.txt
raw| 1 | This test checks that we surface the error for unexpected godebug values. |
| 2 | |
| 3 | TODO(golang/go#67623): the diagnostic should be on the bad godebug value. |
| 4 | |
| 5 | -- flags -- |
| 6 | -min_go_command=go1.23 |
| 7 | -errors_ok |
| 8 | |
| 9 | -- go.mod -- |
| 10 | module example.com/m //@diag("module", re`unknown godebug "panicnull"`) |
| 11 | |
| 12 | go 1.23 |
| 13 | |
| 14 | godebug ( |
| 15 | panicnull=0 // misspelled |
| 16 | ) |
| 17 | godebug panicnil=1 |