Extends migration tests for flm and flt services
This commit is contained in:
1 parent
ce47b9236f
commit
501bd2b4b8
7 files changed
+232
-54
No files matched your search
@@ -50,8 +50,11 @@ TEST(Qt6ApiMigrations, QStringViewBasic)
|
||||
QStringView subView = view.mid(6, 4); // "Qt6 "
|
||||
EXPECT_EQ(subView.toString(), QStringLiteral("Qt6 "));
|
||||
|
||||
// Test that view doesn't allocate memory
|
||||
EXPECT_EQ(view.data(), original.data());
|
||||
// Test that view doesn't allocate memory: QStringView is a non-owning
|
||||
// view onto the original's buffer. Note: the non-const QString::data()
|
||||
// detaches the shared QString (copy-on-write) and would move the buffer,
|
||||
// so the comparison has to use the const overload (constData()).
|
||||
EXPECT_EQ(view.data(), original.constData());
|
||||
}
|
||||
|
||||
// Test 2: QStringView with function parameters
|
||||
|
||||
Reference in new issue
Block a user