Add repo-memory CLI test docs
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Case: `verify-prints-no-repos-when-empty`
|
||||
|
||||
## 用例意义
|
||||
|
||||
验证 `verify` 在已初始化但尚未注册任何 repo 的数据库上返回稳定空结果文本。
|
||||
|
||||
## 前置条件
|
||||
|
||||
- 空数据库已完成 `init`
|
||||
|
||||
## 输入
|
||||
|
||||
```bash
|
||||
repo-memory verify --db TMPDIR/repo-memory.db
|
||||
```
|
||||
|
||||
## 预期输出
|
||||
|
||||
- 命令退出码为 `0`
|
||||
- stdout 等于 `no repos`
|
||||
|
||||
## 断言结论
|
||||
|
||||
- 没有 tracked repo 时,`verify` 走正常空结果路径
|
||||
- 调用方可以先跑 `verify`,再根据 `no repos` 决定是否需要补充 `add` 或 `ingest`
|
||||
Reference in New Issue
Block a user