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

Method incrementVersion

vulnerabilities/lib_oval.py:775–785  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

773 return NotImplemented
774
775 def incrementVersion(self):
776 version = self.getVersion()
777 if not version:
778 version = 1
779 else:
780 if not isinstance(version, int):
781 version = 1
782 else:
783 version = version + 1
784
785 self.setVersion(version)
786
787 def getIndexSequence(self):
788 ovalid = self.getId()

Callers

nothing calls this directly

Calls 2

getVersionMethod · 0.95
setVersionMethod · 0.95

Tested by

no test coverage detected