diff --git a/internal/plugin/plugin_test.go b/internal/plugin/plugin_test.go index 87b1744..f6d1a73 100644 --- a/internal/plugin/plugin_test.go +++ b/internal/plugin/plugin_test.go @@ -2,6 +2,8 @@ package plugin import ( "testing" + + sdk "gitcode.com/JianFeeeee/HomeAgent/internal/sdk" ) func TestExtractDescription(t *testing.T) { @@ -195,3 +197,8 @@ A tool with no parameters` t.Errorf("expected no params, got %d", len(props)) } } + +func TestPluginManagerInterfaceReloadOne(t *testing.T) { + // 编译期契约:Registry 必须实现 PluginManager(含 ReloadOne 单插件重载)。 + var _ sdk.PluginManager = (*Registry)(nil) +}