DOC-FULL-022 P0 | 阅读事件单元测试 【status:partial】 #75
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
5种事件生成正确 eventType/eventId/target/clientSessionId/sequence
M-DOC-FULL 里程碑 issue。详见设计文档。
DOC-FULL-022 P0 | 阅读事件单元测试to DOC-FULL-022 P0 | 阅读事件单元测试 【status:partial】审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。
本 Issue: events.rs 有 10 个 test。但测试 V1 事件(V1 serde)。缺 V2 event/session/sequence 测试。
状态: status:partial
工作类型: work:test
完成报告
改动文件
crates/zx_document_core/src/events_v2.rs— 新增 11 个单元测试,覆盖全部 5 种事件类型测试覆盖(11 个新增)
test_push_position_changedtest_push_heartbeat_with_positiontest_push_heartbeat_without_positiontest_push_marked_as_readtest_event_id_is_non_emptytest_event_ids_are_uniquetest_client_session_id_presenttest_timestamp_ms_settest_position_normalized_in_eventtest_all_five_event_types_have_distinct_typestest_reload_stale_events代码证据
验证