MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / make_comment

Function make_comment

test/diff/diff_files/generate_tests.py:141–142  ·  view source on GitHub ↗
(text, comment_prefix)

Source from the content-addressed store, hash-verified

139 return test_name.replace('_', ' ').title().replace(' ', '')
140
141def make_comment(text, comment_prefix):
142 return '\n'.join([comment_prefix + (' ' if line.strip() else '') + line for line in text.splitlines()])
143
144def read_file(file_name):
145 with open(file_name, 'r') as f:

Callers 2

generate_testFunction · 0.85
generate_cmakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected