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 webpage provides documentation for the `MockResultSetSource` class in the Google Cloud Spanner C++ client library, with the latest version being 2.37.0-rc and the current version listed as 2.31.0."],["The `MockResultSetSource` class is used to mock the results of `ExecuteQuery()` or `Read()` operations, enabling users to test their code without interacting with a real database."],["The class includes functions like `NextRow()`, `Metadata()`, and `Stats()` which use Google Mock's `MOCK_METHOD()` and are documented with return types, descriptions, and links to further documentation."],["`NextRow()` is a function to retrieve the next row in a stream, and can return an error `StatusOr`, or a successful `StatusOr` with an empty `spanner::Row` to indicate the end of a stream."],["There is a \"See Also\" link to more information on the usage of this class with Google Mocking at `/cpp/docs/reference/spanner/2.31.0/spanner-mocking`."]]],[]]