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

Function TestIsCommandLineMode_DefaultFalse

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

Source from the content-addressed store, hash-verified

3import "testing"
4
5func 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
14func TestEnterCommandLineMode_SetsTrue(t *testing.T) {
15 commandLineMode.Store(false)

Callers

nothing calls this directly

Calls 1

IsCommandLineModeFunction · 0.85

Tested by

no test coverage detected