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 page provides documentation for the `MockResultSetSource` class, which is used to mock the results of `ExecuteQuery()` or `Read()` operations in Cloud Spanner's C++ client."],["The `MockResultSetSource` class is available in multiple versions, ranging from the latest release candidate 2.37.0-rc down to version 2.11.0, which are all accessible via a link to each one's individual page."],["The `NextRow()` function is used to retrieve the next row in the result stream, returning either a `StatusOr\u003cspanner::Row\u003e` containing the row or an error if one occurred."],["The class also has `Metadata()` and `Stats()` functions that return an `absl::optional\u003cgoogle::spanner::v1::ResultSetMetadata\u003e` and an `absl::optional\u003cgoogle::spanner::v1::ResultSetStats\u003e` respectively, providing details about the result set."],["These methods are implemented using gMock's `MOCK_METHOD()`, which are used for testing purposes, and users are encouraged to use gMock's documentation to better use this class."]]],[]]