MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / TestEnterCommandLineMode_SetsTrue

Function TestEnterCommandLineMode_SetsTrue

etscore/climode_test.go:14–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12}
13
14func 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
25func TestEnterCommandLineMode_RestoresPrevious(t *testing.T) {
26 commandLineMode.Store(false)

Callers

nothing calls this directly

Calls 2

EnterCommandLineModeFunction · 0.85
IsCommandLineModeFunction · 0.85

Tested by

no test coverage detected