(t *testing.T)
| 152 | } |
| 153 | |
| 154 | func TestKnowledgePlugin_NoAdapter(t *testing.T) { |
| 155 | SetKnowledgeAdapter(nil) |
| 156 | t.Cleanup(func() { SetKnowledgeAdapter(nil) }) |
| 157 | p := NewBuiltinKnowledgePlugin() |
| 158 | if _, err := p.Execute(context.Background(), []string{`{"cmd":"list"}`}); err == nil { |
| 159 | t.Fatal("missing adapter must error, not panic") |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | func TestKnowledgePlugin_Capabilities(t *testing.T) { |
| 164 | p := NewBuiltinKnowledgePlugin() |
nothing calls this directly
no test coverage detected