MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / getFileName

Method getFileName

vulnerabilities/lib_oval.py:810–819  ·  view source on GitHub ↗

Use my OVAL ID to create a base file name. That really just means replacing ':' with '_' *NOTE* This does not include the path to the file.

(self)

Source from the content-addressed store, hash-verified

808 return 1000
809
810 def getFileName(self):
811 """
812 Use my OVAL ID to create a base file name. That really just means replacing ':' with '_'
813 *NOTE* This does not include the path to the file.
814 """
815 ovalid = self.getId()
816 if not ovalid or ovalid is None:
817 return None
818
819 return ovalid.replace(":", "_") + ".xml"
820
821 def getPredicate(self):
822 """

Callers

nothing calls this directly

Calls 1

getIdMethod · 0.95

Tested by

no test coverage detected