Option C Tools
Loading...
Searching...
No Matches
tests_core.test_log_writer Namespace Reference

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)

Detailed Description

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``.

Function Documentation

◆ _setup_option_c()

Path tests_core.test_log_writer._setup_option_c ( Path tmp_path)
protected

Definition at line 34 of file test_log_writer.py.

Here is the caller graph for this function:

◆ test_creates_directory()

tests_core.test_log_writer.test_creates_directory ( Path tmp_path)

Definition at line 55 of file test_log_writer.py.

Here is the call graph for this function:

◆ test_filename_convention()

tests_core.test_log_writer.test_filename_convention ( Path tmp_path)

Definition at line 48 of file test_log_writer.py.

Here is the call graph for this function:

◆ test_report_content_matches()

tests_core.test_log_writer.test_report_content_matches ( Path tmp_path)

Definition at line 63 of file test_log_writer.py.

Here is the call graph for this function:

◆ test_returns_path()

tests_core.test_log_writer.test_returns_path ( Path tmp_path)

Definition at line 70 of file test_log_writer.py.

Here is the call graph for this function:

◆ test_utf8_encoding()

tests_core.test_log_writer.test_utf8_encoding ( Path tmp_path)

Definition at line 77 of file test_log_writer.py.

Here is the call graph for this function:

◆ test_writes_json_file()

tests_core.test_log_writer.test_writes_json_file ( Path tmp_path)

Definition at line 39 of file test_log_writer.py.

Here is the call graph for this function: