Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
Public Member Functions | List of all members
google::cloud::spanner_mocks::v1::MockResultSetSource Class Reference

Mock the results of a ExecuteQuery() or Read() operation. More...

#include <google/cloud/spanner/mocks/mock_spanner_connection.h>

Public Member Functions

 MOCK_METHOD (StatusOr< spanner::Row >, NextRow,(),(override))
 
 MOCK_METHOD (absl::optional< google::spanner::v1::ResultSetMetadata >, Metadata,(),(override))
 
 MOCK_METHOD (absl::optional< google::spanner::v1::ResultSetStats >, Stats,(),(const, override))
 

Detailed Description

Mock the results of a ExecuteQuery() or Read() operation.

See also
Mocking the Cloud Spanner C++ Client with Google Mock for an example using this class.

Definition at line 73 of file mock_spanner_connection.h.

Member Function Documentation

◆ MOCK_METHOD() [1/3]

google::cloud::spanner_mocks::v1::MockResultSetSource::MOCK_METHOD ( absl::optional< google::spanner::v1::ResultSetMetadata >  ,
Metadata  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/3]

google::cloud::spanner_mocks::v1::MockResultSetSource::MOCK_METHOD ( absl::optional< google::spanner::v1::ResultSetStats >  ,
Stats  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/3]

google::cloud::spanner_mocks::v1::MockResultSetSource::MOCK_METHOD ( StatusOr< spanner::Row ,
NextRow  ,
()  ,
(override)   
)