(t *testing.T)
| 15 | ) |
| 16 | |
| 17 | func TestChatKnowledgeEnabled_DefaultAndOff(t *testing.T) { |
| 18 | t.Setenv(chatKnowledgeEnvVar, "") |
| 19 | if !chatKnowledgeEnabled() { |
| 20 | t.Error("default must be ON when unset") |
| 21 | } |
| 22 | t.Setenv(chatKnowledgeEnvVar, "off") |
| 23 | if chatKnowledgeEnabled() { |
| 24 | t.Error("off must disable") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestChatKnowledgeActive_RequiresHandlerAndAttachment(t *testing.T) { |
| 29 | t.Setenv(chatKnowledgeEnvVar, "true") |
nothing calls this directly
no test coverage detected