API Reference cmdc_test v#0.2.0

Copy Markdown View Source

Modules

CMDC Test — 集成方 / 第三方 plugin 作者 / cmdc 子库测试 helpers 一站式包。

CMDC EventBus 事件断言族 — 替代手写 receive/after 模板。

EventBus 订阅 helper — 让调用方进程接收指定 session 的所有 {:cmdc_event, sid, ...} 消息。

Mock LLM provider — Builder API 构造响应队列,配合 CMDC.Config.provider_fn 注入。

Plugin 单元测试 helpers。

Spy Plugin — 注入任意 handler 函数到 Agent Plugin Pipeline 的轻量方式。

RAG / GraphRAG contract assertions。

RAG / GraphRAG 测试 fixture 工厂。

CMDCRAGArcana.Backend shape-compatible fake backend。

CMDCRAGArcana.Graph.Backend shape-compatible fake GraphStore backend。

CMDCRAGArcana.Maintenance.Backend shape-compatible fake backend。

CMDCRAGArcana.Pipeline.Runner shape-compatible fake runner。

GraphRAG / maintenance 测试用空 Repo module 占位。

CMDCRAGArcana.Knowledge.StatusBackend shape-compatible fake backend。

RAG / GraphRAG 测试策略 helper。