MCPcopy Create free account
hub / github.com/antgroup/vsag / GenerateRandomFilePath

Method GenerateRandomFilePath

tests/python/test_base.py:55–62  ·  view source on GitHub ↗

Generate empty file path for testing

()

Source from the content-addressed store, hash-verified

53
54 @staticmethod
55 def GenerateRandomFilePath() -> str:
56 """Generate empty file path for testing"""
57 random_id = np.random.randint(0, 1000000)
58 filename = f"test_index_{random_id}.vsag"
59 while os.path.exists(filename):
60 random_id = np.random.randint(0, 1000000)
61 filename = f"test_index_{random_id}.vsag"
62 return filename
63
64 @staticmethod
65 def TestKnnSearch(

Callers 4

test_load_saveMethod · 0.80
test_load_saveMethod · 0.80
test_load_saveMethod · 0.80
test_load_saveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected