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

Method chdir

deps/v8/tools/unittests/run_perf_test.py:202–208  ·  view source on GitHub ↗
(dir, *args, **kwargs)

Source from the content-addressed store, hash-verified

200 dirs = [os.path.join(TEST_WORKSPACE, dir) for dir in raw_dirs]
201
202 def chdir(dir, *args, **kwargs):
203 if not dirs:
204 raise Exception("Missing test chdir '%s'" % dir)
205 expected_dir = dirs.pop()
206 self.assertEqual(
207 expected_dir, dir,
208 "Unexpected chdir: expected='%s' got='%s'" % (expected_dir, dir))
209
210 os.chdir = mock.MagicMock(side_effect=chdir)
211

Callers 15

configure.pyFile · 0.80
CheckRepoIsCleanFunction · 0.80
CheckoutRevisionFunction · 0.80
GetHeadRevisionFunction · 0.80
mainFunction · 0.80
FixFilenamesFunction · 0.80
ExecPackageFrameworkMethod · 0.80
ExpandVariablesFunction · 0.80
wrappedChdirFunction · 0.80

Calls 1

popMethod · 0.80

Tested by

no test coverage detected