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

Method __init__

deps/v8/tools/testrunner/build_config.py:36–46  ·  view source on GitHub ↗
(self, build_config)

Source from the content-addressed store, hash-verified

34 """
35
36 def __init__(self, build_config):
37 for key, value in build_config.items():
38 setattr(self, key, value)
39
40 self.keys = list(build_config.keys())
41
42 bool_options = [key for key, value in self.items() if value is True]
43 string_options = [
44 f'{key}="{value}"'
45 for key, value in self.items() if value and isinstance(value, str)]
46 self._str_rep = ', '.join(sorted(bool_options + string_options))
47
48 def items(self):
49 for key in self.keys:

Callers

nothing calls this directly

Calls 5

itemsMethod · 0.95
sortedFunction · 0.85
keysMethod · 0.65
listFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected