MCPcopy Create free account
hub / github.com/diillson/chatcli / TestConfigChatGraphViewToggle

Function TestConfigChatGraphViewToggle

cli/chat_graphview_test.go:86–99  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func TestConfigChatGraphViewToggle(t *testing.T) {
87 t.Setenv(chatGraphViewEnvVar, "true")
88 cli := &ChatCLI{}
89 cli.configChatGraphView([]string{"off"})
90 if chatGraphViewEnabled() {
91 t.Fatal("toggle off did not take effect")
92 }
93 cli.configChatGraphView([]string{"on"})
94 if !chatGraphViewEnabled() {
95 t.Fatal("toggle on did not take effect")
96 }
97 // invalid value path (prints guidance, must not panic)
98 cli.configChatGraphView([]string{"bogus"})
99}
100
101func TestShowConfigGraphViewRuns(t *testing.T) {
102 // Smoke: must render without panicking on a bare CLI.

Callers

nothing calls this directly

Calls 2

configChatGraphViewMethod · 0.95
chatGraphViewEnabledFunction · 0.85

Tested by

no test coverage detected