(t *testing.T)
| 12 | } |
| 13 | |
| 14 | func TestEnterCommandLineMode_SetsTrue(t *testing.T) { |
| 15 | commandLineMode.Store(false) |
| 16 | |
| 17 | restore := EnterCommandLineMode() |
| 18 | defer restore() |
| 19 | |
| 20 | if !IsCommandLineMode() { |
| 21 | t.Fatal("expected IsCommandLineMode() == true after EnterCommandLineMode()") |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestEnterCommandLineMode_RestoresPrevious(t *testing.T) { |
| 26 | commandLineMode.Store(false) |
nothing calls this directly
no test coverage detected