Generate empty file path for testing
()
| 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( |
no outgoing calls
no test coverage detected