Option C Tools
Loading...
Searching...
No Matches
tests_linter.test_headers Namespace Reference

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)

Detailed Description

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.

Function Documentation

◆ test_missing_shebang_detected()

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.

◆ test_valid_header_block()

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.