Skip to content

test: cover HDF5 export and remaining DataExporter branches - #40

Merged
Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-10-10
Oct 11, 2026
Merged

Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-10-10

Conversation

@Anai-Guo

Copy link
Copy Markdown
Owner

自动维护改动

类型:维护
改动:新增 tests/test_export_hdf5.py 9 个用例:用 sys.modules 注入的轻量 h5py/numpy 替身覆盖 export_hdf5(数值/字符串列、缺键补 0、空数据、缺 h5py 报错、hdf5 分派),以及时间戳前缀、输出目录创建、CSV 元数据开关与空数据分支。exporter.py 覆盖率 68% → 100%,仅新增测试、无源码改动。
测试:通过(本地全量 476 passed / 1 skipped,ruff check + format 通过)
参考:无

本 PR 由每日维护任务生成,请人工 review 后再合并。

🤖 Generated with Claude Code

export_hdf5 was untested because h5py/numpy are optional and absent in CI.
Exercise it against in-memory stand-ins injected via sys.modules (numeric
vs string columns, missing keys, empty data, missing-h5py error, dispatch),
plus timestamp prefix, output dir creation and CSV metadata toggles.
exporter.py coverage 68% -> 100%.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Anai-Guo
Anai-Guo merged commit ad800e5 into main Oct 11, 2026
3 checks passed
@Anai-Guo
Anai-Guo deleted the chore/auto-maint-2026-10-10 branch October 11, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant