MCPcopy Create free account
hub / github.com/catchorg/Catch2 / generate_header

Function generate_header

tools/scripts/generateAmalgamatedFiles.py:107–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def generate_header():
108 with open(output_header, mode='w', encoding='utf-8') as header:
109 header.write(formatted_file_header(Version()))
110 header.write('#ifndef CATCH_AMALGAMATED_HPP_INCLUDED\n')
111 header.write('#define CATCH_AMALGAMATED_HPP_INCLUDED\n')
112 print('Concatenated {} headers'.format(concatenate_file(header, starting_header, True)))
113 header.write('#endif // CATCH_AMALGAMATED_HPP_INCLUDED\n')
114
115def generate_cpp():
116 from glob import glob

Callers 1

Calls 5

VersionClass · 0.90
formatted_file_headerFunction · 0.85
printFunction · 0.85
concatenate_fileFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected