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 within the Google Cloud Spanner C++ client library, specifically version 2.32.0, and lists links to older versions."],["`MockResultSetSource` enables users to mock the results of `ExecuteQuery()` or `Read()` operations for testing purposes, and there is also a link to an example for using it with the mocking framework."],["The `NextRow()` function retrieves the subsequent row from the result stream, and if there is a failure it returns a `StatusOr` containing the error, or an empty `spanner::Row` to signal the end of the stream."],["The `Metadata()` function returns details regarding the result set, including field types and the transaction ID, while the `Stats()` function returns statistics like the number of rows and the query plan."],["All of the functions listed, `NextRow`, `Metadata`, and `Stats`, are implemented using `gMock`'s `MOCK_METHOD()`, with further documentation available within the `gMock` documentation for specific use cases."]]],[]]