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

Classes

class  TestSaveBaseline
class  TestLoadBaseline
class  TestDiffAgainstBaseline
class  TestBaselineFlags

Functions

list[dict] _make_results (list[tuple[str, str, str]] violations)

Detailed Description

Purpose
-------
FS-508 regression coverage for the lint baseline (snapshot + diff).

Responsibilities
----------------
- Validate save_baseline creates a file and returns a count.
- Validate load_baseline reads back saved data.
- Validate diff_against_baseline detects new and resolved violations.
- Validate --baseline and --against-baseline flag behaviour via run_linter.
- Validate mutually exclusive flag error.

Diagnostics
-----------
Domain: LINTER-TESTS
    Levels:
        L2 — test lifecycle
        L3 — assertion details
        L4 — deep tracing

Contracts
---------
- All baseline files are written to ``tmp_path``; no real project
  baselines are touched.

Function Documentation

◆ _make_results()

list[dict] tests_linter.test_lint_baseline._make_results ( list[tuple[str, str, str]] violations)
protected
Build mock lint results with specified violations.

Definition at line 53 of file test_lint_baseline.py.

Here is the caller graph for this function: