MCPcopy Create free account
hub / github.com/microsoft/Webwright / _final_execution_sort_key

Function _final_execution_sort_key

src/webwright/tools/self_reflection.py:83–88  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

81
82
83def _final_execution_sort_key(name: str) -> tuple[int, str]:
84 match = re.match(r"final_execution_(\d+)_", name)
85 if match:
86 return (int(match.group(1)), name)
87 nums = re.findall(r"\d+", name)
88 return (int(nums[0]) if nums else 0, name)
89
90
91def _run_id_sort_key(name: str) -> tuple[int, str]:

Callers 1

_sorted_image_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected