Repository navigation
test(featuretree): Store 单元验收 16 条 - #33
Merged
Merged
Conversation
接口测试容易被 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 通过)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
直接构造 Store,覆盖乐观锁/undo steps/redo 栈/越界/重复 id/材料/孤儿基体/白名单等边界,进 CI unit job。