MCPcopy Create free account
hub / github.com/FastLED/FastLED / _save_introspect_tests_cache

Function _save_introspect_tests_cache

ci/meson/test_discovery.py:58–68  ·  view source on GitHub ↗

Persist test names to the cache file as a compact JSON array. Stores only test name strings (not the full meson introspect dict) to keep the file small (~6 KB) and parse time minimal (~5 ms).

(build_dir: Path, test_names: list[str])

Source from the content-addressed store, hash-verified

56
57
58def _save_introspect_tests_cache(build_dir: Path, test_names: list[str]) -> None:
59 """Persist test names to the cache file as a compact JSON array.
60
61 Stores only test name strings (not the full meson introspect dict) to
62 keep the file small (~6 KB) and parse time minimal (~5 ms).
63 """
64 cache_path = build_dir / ".meson_introspect_tests_cache.json"
65 try:
66 cache_path.write_text(json.dumps(test_names), encoding="utf-8")
67 except OSError:
68 pass # Non-critical: fast-path simply won't fire on the next run
69
70
71def get_fuzzy_test_candidates(build_dir: Path, test_name: str) -> list[str]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected