MCPcopy Index your code
hub / github.com/nodejs/node / WriteFakeVersionFile

Method WriteFakeVersionFile

deps/v8/tools/release/test_scripts.py:208–220  ·  view source on GitHub ↗
(self, major=3, minor=22, build=4, patch=0)

Source from the content-addressed store, hash-verified

206
207
208 def WriteFakeVersionFile(self, major=3, minor=22, build=4, patch=0):
209 version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)
210 if not os.path.exists(os.path.dirname(version_file)):
211 os.makedirs(os.path.dirname(version_file))
212 with open(version_file, "w") as f:
213 f.write(" // Some line...\n")
214 f.write("\n")
215 f.write("#define V8_MAJOR_VERSION %s\n" % major)
216 f.write("#define V8_MINOR_VERSION %s\n" % minor)
217 f.write("#define V8_BUILD_NUMBER %s\n" % build)
218 f.write("#define V8_PATCH_LEVEL %s\n" % patch)
219 f.write(" // Some line...\n")
220 f.write("#define V8_IS_CANDIDATE_VERSION 0\n")
221
222 def WriteFakeWatchlistsFile(self):
223 watchlists_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], WATCHLISTS_FILE)

Callers 5

testIncrementVersionMethod · 0.95
testCreateReleaseMethod · 0.95
testRollMergeMethod · 0.95
testMergeToBranchMethod · 0.95

Calls 4

openFunction · 0.50
joinMethod · 0.45
existsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected