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

Method assert_file_content

tools/cmake/common/__init__.py:98–103  ·  view source on GitHub ↗
(self, relativePath: str, expectedContent: str)

Source from the content-addressed store, hash-verified

96 _create_file_tree(tree=tree, cwd=self.workspace)
97
98 def assert_file_content(self, relativePath: str, expectedContent: str) -> None:
99 path = os.path.join(self.workspace, relativePath)
100 self.assertTrue(os.path.exists(path), f"expected path does not exist: {path}")
101
102 with open(path, "r") as path_file:
103 self.assertEqual(path_file.read(), expectedContent)
104
105 def run_cmake(
106 self,

Callers 1

test_create_workspaceMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_create_workspaceMethod · 0.64