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 for mocking the results of `ExecuteQuery()` or `Read()` operations in Cloud Spanner."],["The documentation covers various versions of the library, ranging from the latest release candidate (2.37.0-rc) down to version 2.11.0, with links to each version's documentation."],["The `MockResultSetSource` class offers functionalities such as `NextRow()`, `Metadata()`, and `Stats()`, all implemented using gMock's `MOCK_METHOD()`, for detailed control in testing scenarios."],["`NextRow()` is used to retrieve the next row, and can be interrupted if there is a failure, `Metadata()` returns data about field types and the transaction ID, and `Stats()` returns data such as the number of rows."],["The page includes links to further resources, including Google Mock documentation and examples of mocking the Cloud Spanner C++ Client."]]],[]]