From e43b7aa216362e34e806ac74b41a9d6bb544d040 Mon Sep 17 00:00:00 2001 From: JianFeeeee Date: Sun, 16 Aug 2026 18:52:56 +0800 Subject: [PATCH] =?UTF-8?q?test:=20PluginManager=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=90=AB=20ReloadOne=20=E7=9A=84=E7=BC=96=E8=AF=91=E6=9C=9F?= =?UTF-8?q?=E5=A5=91=E7=BA=A6=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/plugin/plugin_test.go | 7 +++++++ 1 file changed, 7 insertions(+) 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) +}