31 lines
747 B
Markdown
31 lines
747 B
Markdown
# Case: `send-reads-body-from-body-file`
|
|
|
|
## 用例意义
|
|
|
|
验证 `send --body-file` 会把文件内容写入消息正文。
|
|
|
|
## 前置条件
|
|
|
|
- `TMPDIR/task.md` 已存在,内容为测试正文
|
|
|
|
## 输入
|
|
|
|
```bash
|
|
inbox --db TMPDIR/coord.db --json send --from leader --to worker-d --subject "Build admin editor" --summary "Create the first editor screen" --body-file TMPDIR/task.md
|
|
inbox --db TMPDIR/coord.db --json show --thread THREAD_ID
|
|
```
|
|
|
|
## 预期输出
|
|
|
|
- `send` 成功
|
|
- `show` 首条消息的 `body` 与文件内容一致
|
|
|
|
## 断言结论
|
|
|
|
- `body-file` 内容会被原样读取
|
|
- 该行为与直接传 `--body` 的最终存储结果等价
|
|
|
|
## 补充约束
|
|
|
|
- `--body` 与 `--body-file` 互斥;该约束由 shared 文档统一说明
|