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 page provides documentation for the `MockResultSetSource` class, which is used for mocking the results of `ExecuteQuery()` or `Read()` operations in Cloud Spanner's C++ client."],["The page details the available versions of the `MockResultSetSource` class, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc."],["The `MockResultSetSource` class offers `NextRow()`, `Metadata()`, and `Stats()` functions, which are implemented using gMock and allow users to mock stream data, metadata, and statistics, respectively."],["The `NextRow()` function returns a `StatusOr\u003cspanner::Row\u003e` that will provide the next row in the stream, return the error in case of a failure, or an empty `spanner::Row` to indicate the end-of-stream."],["`Metadata()` and `Stats()` provide information about the field types and transaction ID created, and statistics about the result set including the number of rows and query plan."]]],[]]