(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func 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 | |
| 101 | func TestShowConfigGraphViewRuns(t *testing.T) { |
| 102 | // Smoke: must render without panicking on a bare CLI. |
nothing calls this directly
no test coverage detected