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

Method testIncrementVersion

deps/v8/tools/release/test_scripts.py:400–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

398 # Version as tag: 3.22.4.0. Version on main: 3.22.6.
399 # Make sure that the latest version is 3.22.6.0.
400 def testIncrementVersion(self):
401 self.Expect([
402 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
403 Cmd("git tag", self.TAGS),
404 Cmd("git checkout -f origin/main -- include/v8-version.h",
405 "", cb=lambda: self.WriteFakeVersionFile(3, 22, 6)),
406 ])
407
408 self.RunStep(CreateRelease, IncrementVersion)
409
410 self.assertEquals("3", self._state["new_major"])
411 self.assertEquals("22", self._state["new_minor"])
412 self.assertEquals("7", self._state["new_build"])
413 self.assertEquals("0", self._state["new_patch"])
414
415 def testBootstrapper(self):
416 work_dir = self.MakeEmptyTempDirectory()

Callers

nothing calls this directly

Calls 4

ExpectMethod · 0.95
WriteFakeVersionFileMethod · 0.95
RunStepMethod · 0.95
CmdFunction · 0.85

Tested by

no test coverage detected