29fa2696c8a7d1ecf27f0d1262abff87df933099
First OneBot unit test that proves the BridgeInterface seam (PR4) delivers real testability. The fake bridge is a Proxy over a tiny override map — un-stubbed methods throw with a clear message, so each test only spells out the surface it actually exercises, and a missing stub never silently passes. Covers the five contact-actions read paths users hit most through the OneBot API: getLoginInfo / getFriendList / getGroupList / getGroupInfo / getGroupMemberList / getGroupMemberInfo / getStrangerInfo — 19 cases spanning happy path, network-fail fallback to identity cache, noCache=true forcing a refetch, and missing-data nulls. No SQLite, no native packet sender, no BridgeManager — just BridgeInterface.
❄️ SnowLuma
Next Remote Protocol Framework.
关于项目
项目处于开发初期,仅支持部分功能,高速迭代中,随时可能出现破坏性更新。
鸣谢
LagrangeV2 - Proto
NapCatQQ - Scaner/Packet
辅助编程
推荐 Opus4.6 + Gemini3.1pro 对本项目辅助开发
本项目大量使用Ai技术。
加入我们
Languages
TypeScript
98.9%
CSS
0.5%
JavaScript
0.5%