MCPcopy Create free account
hub / github.com/pytorch/executorch / get_rand_method_names

Function get_rand_method_names

devtools/bundled_program/util/test_util.py:107–113  ·  view source on GitHub ↗
(n_method_test_suites: int)

Source from the content-addressed store, hash-verified

105
106
107def get_rand_method_names(n_method_test_suites: int) -> List[str]:
108 unique_strings = set()
109 while len(unique_strings) < n_method_test_suites:
110 rand_str = "".join(random.choices(string.ascii_letters, k=5))
111 if rand_str not in unique_strings:
112 unique_strings.add(rand_str)
113 return list(unique_strings)
114
115
116def get_random_test_suites(

Callers 1

get_random_test_suitesFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected