diff options
| author | d7ommy <abnalstlll@gmail.com> | 2026-11-26 01:16:14 +0300 |
|---|---|---|
| committer | d7ommy <abnalstlll@gmail.com> | 2026-11-26 01:16:14 +0300 |
| commit | 6d2b626281e27a3946fef2d4c828af476d83784e (patch) | |
| tree | 9306eff74f6c926827a98e41d5d29434a17ad5dd /runtime/test/code_hooks_test.cpp | |
| parent | cb699500acb724f4ffa2873ee61b578e9d3e8627 (diff) | |
bvh_tri_probe: harden --oracle/--kernel, upfront atomic JSON writes, and oracle error handling (BVH-TRI-PROBE-JSON-AND-CLI)
- Validate --oracle tokens and reject empty or whitespace components upfront.
- Add --hw-arch CLI option, validating and plumbing it to runner.open_oracle().
- Validate and split --kernel arguments with comma expansion, rejecting empty tokens.
- Add validate_json_path() to reject invalid paths, directory paths, and non-directory parents upfront.
- Add write_report() to write JSON atomically with LF line endings and proper file mode.
- Robustly resolve oracle family (handling ValueError) and safely close oracle resources.
- Guard against empty or missing hardware oracle results.
- Add comprehensive test coverage in tests/test_bvh_tri_probe.py (27 tests passing).
Tested:
- python -I tests/test_bvh_tri_probe.py (27/27 passed)
- python -I tools/bvh_tri_probe.py --self-test (passed)
- python -I scripts/check_no_game_data.py tools/bvh_tri_probe.py tests/test_bvh_tri_probe.py (clean)
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions