MCPcopy Create free account
hub / github.com/KDE/kdevelop / verifyInsert

Function verifyInsert

kdevplatform/util/tests/test_algorithm.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace {
23template<typename T>
24void verifyInsert(QSet<T>& set, const T& value, bool existing)
25{
26 const auto result = Algorithm::insert(set, value);
27 QCOMPARE(*result.iterator, value);
28 QCOMPARE(result.inserted, !existing);
29}
30
31#define VERIFY_INSERT_NEW(set, value) \
32 do { \

Callers

nothing calls this directly

Calls 1

insertFunction · 0.85

Tested by

no test coverage detected