|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (spanner::RowStream, Read,(ReadParams),(override)) |
|
| MOCK_METHOD (StatusOr< std::vector< spanner::ReadPartition > >, PartitionRead,(PartitionReadParams),(override)) |
|
| MOCK_METHOD (spanner::RowStream, ExecuteQuery,(SqlParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::DmlResult >, ExecuteDml,(SqlParams),(override)) |
|
| MOCK_METHOD (spanner::ProfileQueryResult, ProfileQuery,(SqlParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::ProfileDmlResult >, ProfileDml,(SqlParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::ExecutionPlan >, AnalyzeSql,(SqlParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::PartitionedDmlResult >, ExecutePartitionedDml,(ExecutePartitionedDmlParams),(override)) |
|
| MOCK_METHOD (StatusOr< std::vector< spanner::QueryPartition > >, PartitionQuery,(PartitionQueryParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::BatchDmlResult >, ExecuteBatchDml,(ExecuteBatchDmlParams),(override)) |
|
| MOCK_METHOD (StatusOr< spanner::CommitResult >, Commit,(CommitParams),(override)) |
|
| MOCK_METHOD (Status, Rollback,(RollbackParams),(override)) |
|
virtual Options | options () |
| Returns the options used by the Connection. More...
|
|
virtual RowStream | Read (ReadParams) |
| Defines the interface for Client::Read() More...
|
|
virtual StatusOr< std::vector< ReadPartition > > | PartitionRead (PartitionReadParams) |
| Defines the interface for Client::PartitionRead() More...
|
|
virtual RowStream | ExecuteQuery (SqlParams) |
| Defines the interface for Client::ExecuteQuery() More...
|
|
virtual StatusOr< DmlResult > | ExecuteDml (SqlParams) |
| Defines the interface for Client::ExecuteDml() More...
|
|
virtual ProfileQueryResult | ProfileQuery (SqlParams) |
| Defines the interface for Client::ProfileQuery() More...
|
|
virtual StatusOr< ProfileDmlResult > | ProfileDml (SqlParams) |
| Defines the interface for Client::ProfileDml() More...
|
|
virtual StatusOr< ExecutionPlan > | AnalyzeSql (SqlParams) |
| Defines the interface for Client::AnalyzeSql() More...
|
|
virtual StatusOr< PartitionedDmlResult > | ExecutePartitionedDml (ExecutePartitionedDmlParams) |
| Defines the interface for Client::ExecutePartitionedDml() More...
|
|
virtual StatusOr< std::vector< QueryPartition > > | PartitionQuery (PartitionQueryParams) |
| Defines the interface for Client::PartitionQuery() More...
|
|
virtual StatusOr< BatchDmlResult > | ExecuteBatchDml (ExecuteBatchDmlParams) |
| Defines the interface for Client::ExecuteBatchDml() More...
|
|
virtual StatusOr< CommitResult > | Commit (CommitParams) |
| Defines the interface for Client::Commit() More...
|
|
virtual Status | Rollback (RollbackParams) |
| Defines the interface for Client::Rollback() More...
|
|
An inlined versioned namespace to avoid dependency diamonds.
A class to mock google::cloud::spanner::Connection
.
Application developers may want to test their code with simulated responses, including errors from a spanner::Client
. To do so, construct a spanner::Client
with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.
- See also
- Mocking the Cloud Spanner C++ Client with Google Mock for an example using this class.