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 document provides documentation for the `MockResultSetSource` class, designed to mock the results of `ExecuteQuery()` or `Read()` operations in the Cloud Spanner C++ client."],["The latest version of `MockResultSetSource` is 2.37.0-rc, with a range of previous versions also available for reference, spanning from 2.11.0 up to 2.36.0."],["The class utilizes `gMock` to implement the `NextRow()`, `Metadata()`, and `Stats()` functions, which are used to simulate a stream of rows, result set metadata, and result set statistics, respectively."],["The `NextRow()` function returns a `StatusOr\u003cspanner::Row\u003e` indicating either the next row or an error status, or an empty row to signal the end of the stream."],["`Metadata()` returns metadata about the result set, while `Stats()` provides statistics, and both methods are detailed to consult the gMock documentation for usage in tests."]]],[]]