in idb/grpc/xctest.py [0:0]
def _get_xctest_type(path: str) -> _XCTestType:
if path.endswith(".xctestrun") and os.path.isfile(path):
return _XCTestType.XCTestRun
if path.endswith(".xctest") and os.path.isdir(path):
return _XCTestType.XCTest
raise XCTestException(f"{path} is not a valid xctest target")