(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func 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 | |
| 33 | func TestGraphViewToolDefinition(t *testing.T) { |
| 34 | def := graphViewToolDefinition() |
nothing calls this directly
no test coverage detected