ml_switcheroo.analysis.audit¶

Audit functionality to determine coverage gaps for a source codebase.

Classes¶

CoverageScanner

Scans a file to identify API calls and checks if they exist in the Semantics Manager.

Module Contents¶

class ml_switcheroo.analysis.audit.CoverageScanner(semantics: ml_switcheroo.semantics.manager.SemanticsManager, allowed_roots: Set[str])¶

Bases: libcst.CSTVisitor

Scans a file to identify API calls and checks if they exist in the Semantics Manager.

results¶

FQN -> (IsSupported: bool, FrameworkKey: str)

Type:

Dict

semantics¶
allowed_roots¶
results: Dict[str, Tuple[bool, str]]¶
visit_Import(node: libcst.Import) → None¶
visit_ImportFrom(node: libcst.ImportFrom) → None¶
visit_Call(node: libcst.Call) → None¶
visit_Attribute(node: libcst.Attribute) → None¶