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-14 UTC."],[[["This webpage provides documentation for the `MockResultSetSource` class in the Google Cloud Spanner C++ client library, with the latest version being 2.37.0-rc and the current version's information pertaining to 2.12.0."],["The `MockResultSetSource` class allows users to mock the results of `ExecuteQuery()` or `Read()` operations within their tests."],["The `NextRow()` function returns the next row in the stream and is implemented using gMock's `MOCK_METHOD()`, with the return being a `StatusOr\u003cspanner::Row\u003e`."],["The `Metadata()` and `Stats()` functions, also implemented with gMock, respectively provide result set metadata and statistics, and both return an absl optional type."],["The documentation includes links to examples and further details for mocking the Cloud Spanner C++ Client with Google Mock and more information about the `ResultSetMetadata` and `ResultSetStats`."]]],[]]