|
Option C Tools
|
Functions | |
| test_valid_header_block (Path temp_project_root, oct_lint.LinterContext linter_ctx) | |
| test_missing_shebang_detected (Path temp_project_root, oct_lint.LinterContext linter_ctx) | |
Purpose
-------
Validate the linter's header detection logic.
Responsibilities
----------------
- Confirm correct detection of valid header blocks.
- Confirm detection of missing or malformed header lines.
- Ensure header validation behaves deterministically.
Diagnostics
-----------
Domain: LINTER-TESTS
Levels:
L2 — lifecycle
L3 — semantic details
L4 — deep tracing
Contracts
---------
- Must not modify fixture files.
- Must not rely on external state.
- Must assert only on validation, not fixing.
| tests_linter.test_headers.test_missing_shebang_detected | ( | Path | temp_project_root, |
| oct_lint.LinterContext | linter_ctx ) |
Definition at line 44 of file test_headers.py.
| tests_linter.test_headers.test_valid_header_block | ( | Path | temp_project_root, |
| oct_lint.LinterContext | linter_ctx ) |
Definition at line 35 of file test_headers.py.