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

Function override_build_config

deps/v8/tools/testrunner/utils/test_utils.py:143–152  ·  view source on GitHub ↗

Override the build config with new values provided as kwargs.

(basedir, **kwargs)

Source from the content-addressed store, hash-verified

141 json.dump(config, f)
142
143def override_build_config(basedir, **kwargs):
144 """Override the build config with new values provided as kwargs."""
145 if not kwargs:
146 return
147 path = basedir / 'out' / 'build' / 'v8_build_config.json'
148 with open(path) as f:
149 config = json.load(f)
150 config.update(kwargs)
151 with open(path, 'w') as f:
152 json.dump(config, f)
153
154@dataclass
155class TestResult():

Callers 1

run_testsMethod · 0.85

Calls 4

updateMethod · 0.65
openFunction · 0.50
loadMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…