(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestIsCommandLineMode_DefaultFalse(t *testing.T) { |
| 6 | // Reset state for test isolation. |
| 7 | commandLineMode.Store(false) |
| 8 | |
| 9 | if IsCommandLineMode() { |
| 10 | t.Fatal("expected IsCommandLineMode() == false by default") |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | func TestEnterCommandLineMode_SetsTrue(t *testing.T) { |
| 15 | commandLineMode.Store(false) |
nothing calls this directly
no test coverage detected