|
Option C Tools
|
Functions | |
| Path | _setup_option_c (Path tmp_path) |
| test_writes_json_file (Path tmp_path) | |
| test_filename_convention (Path tmp_path) | |
| test_creates_directory (Path tmp_path) | |
| test_report_content_matches (Path tmp_path) | |
| test_returns_path (Path tmp_path) | |
| test_utf8_encoding (Path tmp_path) | |
Purpose
-------
Regression tests for :func:`oct.core.log_writer.write_command_log`.
Responsibilities
----------------
- Verify JSON file creation, naming convention, and content fidelity.
- Verify directory auto-creation and UTF-8 encoding.
Diagnostics
-----------
Domain: CORE-TESTS
Levels:
L2 — test lifecycle
L3 — assertion details
L4 — deep tracing
Contracts
---------
- All file writes are confined to ``tmp_path``.
|
protected |
| tests_core.test_log_writer.test_creates_directory | ( | Path | tmp_path | ) |
| tests_core.test_log_writer.test_filename_convention | ( | Path | tmp_path | ) |
| tests_core.test_log_writer.test_report_content_matches | ( | Path | tmp_path | ) |
| tests_core.test_log_writer.test_returns_path | ( | Path | tmp_path | ) |
| tests_core.test_log_writer.test_utf8_encoding | ( | Path | tmp_path | ) |
| tests_core.test_log_writer.test_writes_json_file | ( | Path | tmp_path | ) |