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

Function verifyCurrentLocation

plugins/debuggercommon/tests/debuggertestbase.cpp:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88};
89
90void verifyCurrentLocation(const IDebugSession* session, const QUrl& url, int miLine, AddressKind address)
91{
92 QVERIFY(session);
93
94 QCOMPARE(session->currentUrl(), url);
95 QCOMPARE(currentMiLine(session), miLine);
96 switch (address) {
97 case AddressKind::Empty:
98 QCOMPARE(session->currentAddr(), QString{});
99 break;
100 case AddressKind::Valid:
101 VERIFY_VALID_ADDRESS(session->currentAddr());
102 break;
103 }
104}
105
106#define VERIFY_CURRENT_LOCATION(session, url, miLine, address) \
107 do { \

Callers

nothing calls this directly

Calls 3

currentMiLineFunction · 0.85
currentAddrMethod · 0.80
currentUrlMethod · 0.45

Tested by

no test coverage detected