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

Function create_wrapper

deps/v8/test/unittests/gen_fuzztest_configs.py:97–105  ·  view source on GitHub ↗
(file_name, template, test='')

Source from the content-addressed store, hash-verified

95
96
97def create_wrapper(file_name, template, test=''):
98 with action_helpers.atomic_output(file_name) as f:
99 wrapper = template.format(test=test)
100 f.write(wrapper.encode('utf-8'))
101
102 # Make the wrapper world-executable.
103 st = os.stat(file_name)
104 m = st.st_mode
105 os.chmod(file_name, m | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
106
107
108def setup_fuzztests_dir(cwd):

Callers 2

setup_fuzztests_dirFunction · 0.85
create_fuzztest_wrapperFunction · 0.85

Calls 5

encodeMethod · 0.80
formatMethod · 0.65
writeMethod · 0.45
statMethod · 0.45
chmodMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…