(t *testing.T)
| 251 | } |
| 252 | |
| 253 | func TestContextNoAdapter(t *testing.T) { |
| 254 | SetContextAdapter(nil) |
| 255 | p := NewBuiltinContextPlugin() |
| 256 | if _, err := p.Execute(context.Background(), []string{`{"cmd":"list"}`}); err == nil { |
| 257 | t.Error("expected error when no adapter is wired") |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | func TestContextCapsReadOnly(t *testing.T) { |
| 262 | p := NewBuiltinContextPlugin() |
nothing calls this directly
no test coverage detected