MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / writeHeader

Function writeHeader

src/karta_identifier.py:32–42  ·  view source on GitHub ↗

Write the header of the output file. Args: fd (fd): fd for the results file

(fd)

Source from the content-addressed store, hash-verified

30 logger.info(line)
31
32def writeHeader(fd):
33 """Write the header of the output file.
34
35 Args:
36 fd (fd): fd for the results file
37 """
38 header_template = "%s Identifier - %s:"
39 program_name = disas.inputFile()
40 writeLine(fd, header_template % (LIBRARY_NAME, program_name))
41 writeLine(fd, "=" * (len(header_template) + len(LIBRARY_NAME) + len(program_name) - 4))
42 writeLine(fd, "")
43
44def writeSuffix(fd):
45 """Write the SUFFIX of the output file.

Callers 1

identifyLibrariesFunction · 0.85

Calls 2

writeLineFunction · 0.85
inputFileMethod · 0.45

Tested by

no test coverage detected