(self, file_path = None)
| 541 | |
| 542 | |
| 543 | def load_testcases(self, file_path = None): |
| 544 | if file_path != None: |
| 545 | self.prompt2testcase = json.load(open(file_path, "r")) |
| 546 | elif self.data_path != None: |
| 547 | self.prompt2testcase = json.load(open(os.path.join(self.data_path, "testcases.json"), "r")) |
| 548 | else: |
| 549 | raise ValueError("Cannot find the file path for test cases.") |
| 550 | |
| 551 | def load_groundtruths(self, file_path = None): |
| 552 | if file_path != None: |
no outgoing calls
no test coverage detected