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."],[[["The content provides documentation for the `MockResultSetSource` class, which is used for mocking the results of `ExecuteQuery()` or `Read()` operations in Cloud Spanner's C++ client."],["This page documents multiple versions of the `MockResultSetSource` class, ranging from version 2.11.0 to 2.36.0, and a latest release candidate 2.37.0-rc, alongside the currently stable 2.18.0."],["The `MockResultSetSource` class features three primary functions: `NextRow()`, `Metadata()`, and `Stats()`, all of which are implemented using gMock's `MOCK_METHOD()` and have comprehensive documentation about their return types and use cases."],["`NextRow()` is used to retrieve the next row in the result stream, with a `StatusOr\u003cspanner::Row\u003e` return type, potentially indicating failure or end-of-stream."],["`Metadata()` and `Stats()` are used to provide detailed information regarding the result set's metadata or statistics respectively, such as field types, transaction IDs, row counts, and query plan, amongst others."]]],[]]