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-03-21 UTC."],[[["This webpage details the `MockResultSetSource` class within the Google Cloud Spanner C++ client library, used for mocking the results of `ExecuteQuery()` or `Read()` operations."],["The latest version available is `2.37.0-rc`, with a range of previous versions accessible, from `2.36.0` down to `2.11.0`, and all links go to the `MockResultSetSource` class page for each version."],["The class provides functions such as `NextRow()`, `Metadata()`, and `Stats()` to simulate result set behavior, all implemented using Google Mock's `MOCK_METHOD()`."],["The `NextRow()` function returns a `StatusOr\u003cspanner::Row\u003e`, providing either a row or a status error, and an empty row to indicate end-of-stream, and the `Metadata()` and `Stats()` return respective metadata and stats about the result set."],["The webpage has more information on how to use this class on its related page `Mocking the Cloud Spanner C++ Client with Google Mock`."]]],[]]