MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / selected_cases

Function selected_cases

tools/audiocpp_cli/run_audiocpp_cli_path_tests.py:151–166  ·  view source on GitHub ↗
(catalog: dict[str, Any], only: set[str], family: str | None)

Source from the content-addressed store, hash-verified

149
150
151def selected_cases(catalog: dict[str, Any], only: set[str], family: str | None) -> list[dict[str, Any]]:
152 cases = catalog.get("cases", [])
153 out: list[dict[str, Any]] = []
154 for case in cases:
155 case_id = case["id"]
156 if only and case_id not in only:
157 continue
158 if family and case.get("family") != family:
159 continue
160 out.append(case)
161 if only:
162 found = {case["id"] for case in out}
163 missing = sorted(only - found)
164 if missing:
165 raise RuntimeError("unknown case id(s): " + ", ".join(missing))
166 return out
167
168
169def request_to_args(request: dict[str, Any], repo_root: Path) -> list[str]:

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected