MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / load_testcases

Method load_testcases

src/dataset.py:543–549  ·  view source on GitHub ↗
(self, file_path = None)

Source from the content-addressed store, hash-verified

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:

Callers 3

print_infoMethod · 0.95
__init__Method · 0.80
get_expected_outputsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected