Google Cloud BigQuery C++ Client  2.6.0
A C++ Client Library for Google Cloud BigQuery
Public Member Functions | List of all members
google::cloud::bigquery_mocks::MockModelServiceConnection Class Reference

A class to mock ModelServiceConnection. More...

#include <google/cloud/bigquery/mocks/mock_model_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::v2::Model >, GetModel,(google::cloud::bigquery::v2::GetModelRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::v2::ListModelsResponse >, ListModels,(google::cloud::bigquery::v2::ListModelsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::v2::Model >, PatchModel,(google::cloud::bigquery::v2::PatchModelRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteModel,(google::cloud::bigquery::v2::DeleteModelRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::v2::Model > GetModel (google::cloud::bigquery::v2::GetModelRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::v2::ListModelsResponse > ListModels (google::cloud::bigquery::v2::ListModelsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::v2::Model > PatchModel (google::cloud::bigquery::v2::PatchModelRequest const &request)
 
virtual Status DeleteModel (google::cloud::bigquery::v2::DeleteModelRequest const &request)
 

Detailed Description

A class to mock ModelServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type ModelServiceClient. To do so, construct an object of type ModelServiceClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Definition at line 45 of file mock_model_connection.h.

Member Function Documentation

◆ DeleteModel()

virtual Status google::cloud::bigquery::ModelServiceConnection::DeleteModel ( google::cloud::bigquery::v2::DeleteModelRequest const &  request)
virtualinherited

◆ GetModel()

virtual StatusOr<google::cloud::bigquery::v2::Model> google::cloud::bigquery::ModelServiceConnection::GetModel ( google::cloud::bigquery::v2::GetModelRequest const &  request)
virtualinherited

◆ ListModels()

virtual StatusOr<google::cloud::bigquery::v2::ListModelsResponse> google::cloud::bigquery::ModelServiceConnection::ListModels ( google::cloud::bigquery::v2::ListModelsRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/5]

google::cloud::bigquery_mocks::MockModelServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/5]

google::cloud::bigquery_mocks::MockModelServiceConnection::MOCK_METHOD ( Status  ,
DeleteModel  ,
(google::cloud::bigquery::v2::DeleteModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/5]

google::cloud::bigquery_mocks::MockModelServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::v2::ListModelsResponse >  ,
ListModels  ,
(google::cloud::bigquery::v2::ListModelsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/5]

google::cloud::bigquery_mocks::MockModelServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::v2::Model >  ,
GetModel  ,
(google::cloud::bigquery::v2::GetModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/5]

google::cloud::bigquery_mocks::MockModelServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::v2::Model >  ,
PatchModel  ,
(google::cloud::bigquery::v2::PatchModelRequest const &request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery::ModelServiceConnection::options ( )
inlinevirtualinherited

Definition at line 64 of file model_connection.h.

◆ PatchModel()

virtual StatusOr<google::cloud::bigquery::v2::Model> google::cloud::bigquery::ModelServiceConnection::PatchModel ( google::cloud::bigquery::v2::PatchModelRequest const &  request)
virtualinherited