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

Function TestChatGraphViewEnabledDefaultAndToggle

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

Source from the content-addressed store, hash-verified

16)
17
18func TestChatGraphViewEnabledDefaultAndToggle(t *testing.T) {
19 t.Setenv(chatGraphViewEnvVar, "")
20 if !chatGraphViewEnabled() {
21 t.Fatal("default should be ON")
22 }
23 t.Setenv(chatGraphViewEnvVar, "off")
24 if chatGraphViewEnabled() {
25 t.Fatal("off must disable")
26 }
27 t.Setenv(chatGraphViewEnvVar, "true")
28 if !chatGraphViewEnabled() {
29 t.Fatal("true must enable")
30 }
31}
32
33func TestGraphViewToolDefinition(t *testing.T) {
34 def := graphViewToolDefinition()

Callers

nothing calls this directly

Calls 1

chatGraphViewEnabledFunction · 0.85

Tested by

no test coverage detected