forked from qt-creator/qt-creator
Sqlite: Improve SqliteStatement
There are now only value and values methods. value returns an optional and values are returning a vector. The result value count has now be specified instead of the result value list. Change-Id: I17a0741d5e838b4bf4b9486825c870ada1722584 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -63,9 +63,9 @@ protected:
|
||||
|
||||
TEST_F(SymbolQuery, LocationsAt)
|
||||
{
|
||||
EXPECT_CALL(selectLocationsForSymbolLocation, structValuesReturnStdVectorLocation(_, Eq("/path/to/file.cpp"), 14, 7))
|
||||
EXPECT_CALL(selectLocationsForSymbolLocation, valuesReturnStdVectorLocation(_, Eq("/path/to/file.cpp"), 14, 7))
|
||||
.WillRepeatedly(Return(locations));
|
||||
EXPECT_CALL(selectSourcePathForId, structValuesReturnStdVectorSource(_, ElementsAre(1, 2, 4)));
|
||||
EXPECT_CALL(selectSourcePathForId, valuesReturnStdVectorSource(_, ElementsAre(1, 2, 4)));
|
||||
|
||||
query.locationsAt("/path/to/file.cpp", 14, 7);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user