forked from qt-creator/qt-creator
Sqlite: Cleanup id handling
Because ids are now handled directly by the sqlite statement the shortcut to take the "address" of the id is deactivated and you have to use some special functions. Change-Id: I869f5d1688ab4b6794fb9ed3ffcaa3978a0fc516 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -442,7 +442,7 @@ TYPED_TEST(StorageCache, GetEntryByIndexAfterInsertingByCustomIndex)
|
||||
TYPED_TEST(StorageCache, CallFetchSourceContextPathForLowerIndex)
|
||||
{
|
||||
auto index = this->cache.id("foo");
|
||||
SourceContextId lowerIndex{SourceContextId::create(&index - 1)};
|
||||
SourceContextId lowerIndex{SourceContextId::create(index.internalId() - 1)};
|
||||
|
||||
EXPECT_CALL(this->mockStorage, fetchSourceContextPath(Eq(lowerIndex)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user