Skip to content

test(featuretree): Store 单元验收 16 条 - #33

Merged
owlco001 merged 1 commit into
mainfrom
test/store-unit
Oct 28, 2026
Merged

owlco001 merged 1 commit into
mainfrom
test/store-unit

Conversation

@owlco001

Copy link
Copy Markdown
Owner

直接构造 Store,覆盖乐观锁/undo steps/redo 栈/越界/重复 id/材料/孤儿基体/白名单等边界,进 CI unit job。

接口测试容易被 HTTP 层掩盖边界,这里直接构造 Store 钉住语义:
- 乐观锁:旧 revision 被拒且文档不变
- undo steps=2 回到两版之前;redo 放回;redo 栈空再取被拒;undo 越界 NOT_FOUND
- 未知操作 / 重复 id / 未知材料(消息里要列出可选值)
- 删除唯一基体 → REFERENCE_IN_USE 且点名引用方
- 全部压缩 → REBUILD_FAILED 且版本停在 0
- 只压基体留下孤儿特征 → 校验层 VALIDATION_FAILED(不用等重建)
- 白名单外字段 → UNKNOWN_FIELD

进 CI unit job。验证:STORE_OK 16/16,desktop 2589(2587 通过)。
@owlco001
owlco001 merged commit 2648a24 into main Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant