2.0 KiB
2.0 KiB
测试结果
- 状态: PASS
- 分类: 主区
- 文件: app/lib/file_writer.test.js
- 源: main
- 测试类型: 自动化文件级执行
- 测试账号: liufumingren
- 测试仓 ID: 100000
- 测试货主 ID: 1000000
- 开始时间: 2026-04-10T13:05:10.427Z
- 结束时间: 2026-04-10T13:05:12.203Z
- 耗时(秒): 2
- 退出码: 0
- 说明: 执行完成
执行输出摘录
[egg-ts-helper] create typings\app\extend\application.d.ts (3ms)
[egg-ts-helper] create typings\app\controller\index.d.ts (2ms)
[egg-ts-helper] create typings\app\model\index.d.ts (2ms)
[egg-ts-helper] create typings\config\index.d.ts (14ms)
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
[egg-ts-helper] create typings\app\service\index.d.ts (3ms)
[egg-ts-helper] create typings\app\index.d.ts (1ms)
test/app/lib/file_writer.test.js
✔ should keep unfinished data files and progress files during cleanup
✔ should mark completed files, skip them on restart, and clean them up later
✔ should keep consuming across files and partitions until the shared limit is reached
✔ should throttle writes when write window record limit is reached
✔ should consume with a simple per-call limit without time-based windowing
✔ should consume files across multiple date partitions in write order without a date filter
✔ should sort files within the same date partition by sequence instead of mtime
✔ should keep exact offsets for CRLF files without a trailing newline
✔ should ignore corrupt progress and completion markers and keep consuming
✔ should rethrow filesystem errors other than missing files when loading progress markers
✔ should recycle old partition states when the cache reaches its limit
✔ should limit records when maxRecords is specified
12 passing (263ms)
[mochawesome] Report JSON saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.json
[mochawesome] Report HTML saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.html