完善测试
This commit is contained in:
@@ -59,6 +59,13 @@
|
||||
- 使用事件循环等待完成。
|
||||
- 验证任务确实执行。
|
||||
|
||||
## 单元覆盖重点(已扩展)
|
||||
|
||||
- `app/undo`:`undo_stack_test.cpp` 覆盖空栈状态、模型数据、redo 区域颜色、jump 行为、空 MultiUndoCommand 忽略逻辑。
|
||||
- `app/timeline`:`timeline_marker_test.cpp` 覆盖列表排序、最近 marker 查询、含未知元素的保存/加载、marker 增删改命令。
|
||||
- `app/pluginSupport`:`plugin_support_image_test.cpp` 覆盖 OFX 属性映射(bounds/ROD、像素深度、通道、预乘)及分配/清理行为。
|
||||
- `app/render`:`render_videoparams_branch_test.cpp` 覆盖自动 divider、像素宽高比校验、方形像素宽度、Save/Load 回归。
|
||||
|
||||
## 无 GUI 运行
|
||||
|
||||
- 测试避免使用 QWidget。
|
||||
|
||||
@@ -59,6 +59,13 @@ If a module has a GUI dependency (e.g., widgets), tests focus on non-visual data
|
||||
- Waits for completion using an event loop.
|
||||
- Verifies the task ran.
|
||||
|
||||
## Unit Coverage Highlights (Expanded)
|
||||
|
||||
- `app/undo`: `undo_stack_test.cpp` now covers empty stack state, model data, redo list coloring, jump behavior, and ignored empty multi-commands.
|
||||
- `app/timeline`: `timeline_marker_test.cpp` now covers list ordering, closest-marker lookup, list save/load with unknown elements, and marker add/remove/change commands.
|
||||
- `app/pluginSupport`: `plugin_support_image_test.cpp` now checks OFX property wiring (bounds/ROD, pixel depth, components, premult) and allocation clearing behavior.
|
||||
- `app/render`: `render_videoparams_branch_test.cpp` now covers auto divider selection, pixel aspect validation, square-pixel width, and Save/Load roundtrip.
|
||||
|
||||
## Headless Execution
|
||||
|
||||
- Tests avoid QWidget usage.
|
||||
|
||||
Reference in New Issue
Block a user