MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / _testUniqueIdInterface

Function _testUniqueIdInterface

src/pyOpenMS/tests/unittests/test000.py:72–94  ·  view source on GitHub ↗
(what)

Source from the content-addressed store, hash-verified

70
71@report
72def _testUniqueIdInterface(what):
73
74 assert what.hasInvalidUniqueId()
75 assert not what.hasValidUniqueId()
76 assert what.ensureUniqueId()
77 assert isinstance(what.getUniqueId(), (int, long))
78 assert what.getUniqueId() > 0
79 assert not what.hasInvalidUniqueId()
80 assert what.hasValidUniqueId()
81
82 what.clearUniqueId()
83 assert what.getUniqueId() == 0
84 assert what.hasInvalidUniqueId()
85 assert not what.hasValidUniqueId()
86
87 assert what.ensureUniqueId()
88 assert isinstance(what.getUniqueId(), (int, long))
89 assert what.getUniqueId() > 0
90 assert not what.hasInvalidUniqueId()
91 assert what.hasValidUniqueId()
92
93 what.setUniqueId(1234)
94 assert what.getUniqueId() == 1234
95
96
97def _testProgressLogger(ff):

Callers 5

test_BaseFeatureFunction · 0.85
testConsensusFeatureFunction · 0.85
testFeatureFunction · 0.85
testFeatureMapFunction · 0.85
testRichPeakFunction · 0.85

Calls 3

ensureUniqueIdMethod · 0.80
getUniqueIdMethod · 0.80
setUniqueIdMethod · 0.80

Tested by

no test coverage detected