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

Function parse_metadata

tests/test_metadata_cache.py:136–152  ·  view source on GitHub ↗

Parse test metadata into a set of test names. Args: metadata: Test metadata in format "TEST:name:path:category\\n..." Returns: Set of test names

(metadata: str)

Source from the content-addressed store, hash-verified

134
135
136def parse_metadata(metadata: str) -> set[str]:
137 """
138 Parse test metadata into a set of test names.
139
140 Args:
141 metadata: Test metadata in format "TEST:name:path:category\\n..."
142
143 Returns:
144 Set of test names
145 """
146 test_names = set()
147 for line in metadata.strip().split("\n"):
148 if line and line.startswith("TEST:"):
149 parts = line.split(":")
150 if len(parts) >= 2:
151 test_names.add(parts[1])
152 return test_names
153
154
155def detect_changes(tests_dir: Path, build_dir: Path) -> dict[str, list[str] | bool]:

Callers

nothing calls this directly

Calls 2

setClass · 0.50
addMethod · 0.45

Tested by

no test coverage detected