MCPcopy Create free account
hub / github.com/PostHog/duckgres / parse_name_status

Function parse_name_status

scripts/test_impact_plan.py:113–124  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

111
112
113def parse_name_status(line: str) -> tuple[str, str, str | None] | None:
114 if not line.strip():
115 return None
116 parts = line.split("\t")
117 status = parts[0]
118 if status.startswith("R") or status.startswith("C"):
119 if len(parts) < 3:
120 return None
121 return status[0], parts[2], parts[1]
122 if len(parts) < 2:
123 return None
124 return status[0], parts[1], None
125
126
127def add_file_delta(plan: TestImpactPlan, status: str, path: str) -> None:

Callers 1

analyze_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected