Lines Matching refs:file_path
106 def get_file_suffix(file_path) -> FileSuffix: argument
108 if file_path.endswith(ext):
109 file_path_without_suffix = file_path[: -len(ext)]
111 return FileSuffix(file_path, "")
114 def should_run_with_node(file_path): argument
116 if file_path.endswith(one):
119 if file_path.endswith(EXTENTION_JS):
122 file_path.endswith(EXTENTION_TS)
123 and not file_path.endswith(EXTENTION_DETS)
124 and not file_path.endswith(EXTENTION_DTS)
131 def run_file_with_node(file_path): argument
132 cmd = "node ./node_modules/ts-node/dist/bin.js %s" % file_path
380 self, file_path, actual, expectation, actual_path, expectation_file argument
387 self.content_compare_result.failed_cases.append(file_path)
393 def __compare_content(self, file_path): argument
394 source_path = file_path.replace("/test/local/", "/test/grammar/")
397 result_suffix = get_file_suffix(file_path)
409 with open(file_path) as actual_file, open(
415 file_path, actual, expectation, file_path, expectation_file
425 file_path,
441 file_path,