This function is implemented using gMock's MOCK_METHOD().
Consult the gMock documentation to use this mock in your tests.
Returns
Type
Description
StatusOr< spanner::Row >
if the stream is interrupted due to a failure the StatusOr<spanner::Row> contains the error. The function returns a successful StatusOr<> with an empty spanner::Row to indicate end-of-stream.
Metadata()
Returns metadata about the result set, such as the field types and the transaction id created by the request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This webpage provides documentation for the `MockResultSetSource` class, which is used for mocking the results of Cloud Spanner `ExecuteQuery()` or `Read()` operations in C++."],["The documentation includes a comprehensive list of available versions of the `MockResultSetSource` class, ranging from the latest release candidate (2.37.0-rc) down to version 2.11.0."],["The `NextRow()` function is documented as returning the next row in the stream, utilizing gMock's `MOCK_METHOD()` and providing a `StatusOr\u003cspanner::Row\u003e` type, which will indicate an error if the stream fails, or indicate the end of stream if the `StatusOr\u003c\u003e` is successful and with an empty `spanner::Row` type."],["The `Metadata()` function returns metadata about the result set, including field types and transaction ID, while the `Stats()` function returns statistics like the number of rows and the query plan used, with both functions implemented using gMock's `MOCK_METHOD()`."],["There is an example that can be found in the link provided, which shows how to mock the Cloud Spanner C++ Client using this class, to help users better understand how to implement it in their tests."]]],[]]