test: PluginManager 接口含 ReloadOne 的编译期契约验证

This commit is contained in:
JianFeeeee
2026-08-16 18:52:56 +08:00
parent 2089d41c0f
commit e43b7aa216

View File

@ -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)
}