DOC-FULL-023 P0 | activeSecondsDelta 测试 【status:todo】 #76
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?
阅读43秒、15s+15s+13s、暂停30s不计时、恢复继续、时间倒退不产负数
M-DOC-FULL 里程碑 issue。详见设计文档。
DOC-FULL-023 P0 | activeSecondsDelta 测试to DOC-FULL-023 P0 | activeSecondsDelta 测试 【status:todo】审查结论: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: ActiveTimeTracker 不存在 → 无测试。
状态: status:todo
工作类型: work:test
完成报告
现有覆盖
time_tracker.rs已有 8 个单元测试覆盖全部核心场景:test_43_seconds_total— 15s+15s+13s=43stest_pause_stops_time— 暂停 30s 不计时test_time_goes_backwards— 时间倒退返回 0test_remainder_accumulates— 余数累积test_close_returns_residual/test_inactive_tick_returns_zero/test_start_returns_zero/test_close_inactive_returns_zero新增 session+tracker 集成测试
crates/zx_document_core/src/session_v2.rs— 新增 3 个集成测试测试覆盖(3 个新增)
test_total_active_seconds_accumulatestest_sequence_and_seconds_independenttest_last_position_updated代码证据
验证