Lines Matching refs:line
276 def find_matching(line: str, open: str = '(', close: str = ')') -> Tuple[int, int]:
295 start: int = line.find(open)
299 for i in range(start + 1, len(line)):
300 if line[i] == open:
302 if line[i] == close:
309 def parse_test_line(line: str, fallback_name: str = '') -> TestSpec:
322 if line[0] == "(":
324 start, end = find_matching(line)
328 keyvalues_str = line[start:end + 1]
358 line = line[end + 1:]
369 args: List[str] = re.findall(args_pattern, line)
399 return [parse_test_line(line.strip(comment_str).removeprefix("TESTARGS"), source_file.stem)
400 for line in source_file.read_text().splitlines()
401 …if line.startswith(f'{comment_str}TESTARGS')] or [TestSpec(source_file.stem, args=['{ceed_resource…
445 test_lines = [test_lines[line] for line in uncommented_lines]
446 true_lines = [true_lines[line] for line in uncommented_lines]