Google Cloud BigQuery C++ Client 2.13.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection Class Reference

A class to mock MetastoreServiceConnection. More...

#include <google/cloud/bigquery/biglake/v1/mocks/mock_metastore_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Catalog >, CreateCatalog,(google::cloud::bigquery::biglake::v1::CreateCatalogRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Catalog >, DeleteCatalog,(google::cloud::bigquery::biglake::v1::DeleteCatalogRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Catalog >, GetCatalog,(google::cloud::bigquery::biglake::v1::GetCatalogRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::biglake::v1::Catalog >, ListCatalogs,(google::cloud::bigquery::biglake::v1::ListCatalogsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Database >, CreateDatabase,(google::cloud::bigquery::biglake::v1::CreateDatabaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Database >, DeleteDatabase,(google::cloud::bigquery::biglake::v1::DeleteDatabaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Database >, UpdateDatabase,(google::cloud::bigquery::biglake::v1::UpdateDatabaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Database >, GetDatabase,(google::cloud::bigquery::biglake::v1::GetDatabaseRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::biglake::v1::Database >, ListDatabases,(google::cloud::bigquery::biglake::v1::ListDatabasesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Table >, CreateTable,(google::cloud::bigquery::biglake::v1::CreateTableRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Table >, DeleteTable,(google::cloud::bigquery::biglake::v1::DeleteTableRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Table >, UpdateTable,(google::cloud::bigquery::biglake::v1::UpdateTableRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Table >, RenameTable,(google::cloud::bigquery::biglake::v1::RenameTableRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::biglake::v1::Table >, GetTable,(google::cloud::bigquery::biglake::v1::GetTableRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::biglake::v1::Table >, ListTables,(google::cloud::bigquery::biglake::v1::ListTablesRequest request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > CreateCatalog (google::cloud::bigquery::biglake::v1::CreateCatalogRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > DeleteCatalog (google::cloud::bigquery::biglake::v1::DeleteCatalogRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > GetCatalog (google::cloud::bigquery::biglake::v1::GetCatalogRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::biglake::v1::Catalog > ListCatalogs (google::cloud::bigquery::biglake::v1::ListCatalogsRequest request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > CreateDatabase (google::cloud::bigquery::biglake::v1::CreateDatabaseRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > DeleteDatabase (google::cloud::bigquery::biglake::v1::DeleteDatabaseRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > UpdateDatabase (google::cloud::bigquery::biglake::v1::UpdateDatabaseRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > GetDatabase (google::cloud::bigquery::biglake::v1::GetDatabaseRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::biglake::v1::Database > ListDatabases (google::cloud::bigquery::biglake::v1::ListDatabasesRequest request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > CreateTable (google::cloud::bigquery::biglake::v1::CreateTableRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > DeleteTable (google::cloud::bigquery::biglake::v1::DeleteTableRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > UpdateTable (google::cloud::bigquery::biglake::v1::UpdateTableRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > RenameTable (google::cloud::bigquery::biglake::v1::RenameTableRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > GetTable (google::cloud::bigquery::biglake::v1::GetTableRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::biglake::v1::Table > ListTables (google::cloud::bigquery::biglake::v1::ListTablesRequest request)
 

Detailed Description

A class to mock MetastoreServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type MetastoreServiceClient. To do so, construct an object of type MetastoreServiceClient 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.

Member Function Documentation

◆ CreateCatalog()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::CreateCatalog ( google::cloud::bigquery::biglake::v1::CreateCatalogRequest const &  request)
virtualinherited

◆ CreateDatabase()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::CreateDatabase ( google::cloud::bigquery::biglake::v1::CreateDatabaseRequest const &  request)
virtualinherited

◆ CreateTable()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::CreateTable ( google::cloud::bigquery::biglake::v1::CreateTableRequest const &  request)
virtualinherited

◆ DeleteCatalog()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::DeleteCatalog ( google::cloud::bigquery::biglake::v1::DeleteCatalogRequest const &  request)
virtualinherited

◆ DeleteDatabase()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::DeleteDatabase ( google::cloud::bigquery::biglake::v1::DeleteDatabaseRequest const &  request)
virtualinherited

◆ DeleteTable()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::DeleteTable ( google::cloud::bigquery::biglake::v1::DeleteTableRequest const &  request)
virtualinherited

◆ GetCatalog()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Catalog > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::GetCatalog ( google::cloud::bigquery::biglake::v1::GetCatalogRequest const &  request)
virtualinherited

◆ GetDatabase()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::GetDatabase ( google::cloud::bigquery::biglake::v1::GetDatabaseRequest const &  request)
virtualinherited

◆ GetTable()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::GetTable ( google::cloud::bigquery::biglake::v1::GetTableRequest const &  request)
virtualinherited

◆ ListCatalogs()

virtual StreamRange< google::cloud::bigquery::biglake::v1::Catalog > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::ListCatalogs ( google::cloud::bigquery::biglake::v1::ListCatalogsRequest  request)
virtualinherited

◆ ListDatabases()

virtual StreamRange< google::cloud::bigquery::biglake::v1::Database > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::ListDatabases ( google::cloud::bigquery::biglake::v1::ListDatabasesRequest  request)
virtualinherited

◆ ListTables()

virtual StreamRange< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::ListTables ( google::cloud::bigquery::biglake::v1::ListTablesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Catalog >  ,
CreateCatalog  ,
(google::cloud::bigquery::biglake::v1::CreateCatalogRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Catalog >  ,
DeleteCatalog  ,
(google::cloud::bigquery::biglake::v1::DeleteCatalogRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Catalog >  ,
GetCatalog  ,
(google::cloud::bigquery::biglake::v1::GetCatalogRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Database >  ,
CreateDatabase  ,
(google::cloud::bigquery::biglake::v1::CreateDatabaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Database >  ,
DeleteDatabase  ,
(google::cloud::bigquery::biglake::v1::DeleteDatabaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Database >  ,
GetDatabase  ,
(google::cloud::bigquery::biglake::v1::GetDatabaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Database >  ,
UpdateDatabase  ,
(google::cloud::bigquery::biglake::v1::UpdateDatabaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Table >  ,
CreateTable  ,
(google::cloud::bigquery::biglake::v1::CreateTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Table >  ,
DeleteTable  ,
(google::cloud::bigquery::biglake::v1::DeleteTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Table >  ,
GetTable  ,
(google::cloud::bigquery::biglake::v1::GetTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Table >  ,
RenameTable  ,
(google::cloud::bigquery::biglake::v1::RenameTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::biglake::v1::Table >  ,
UpdateTable  ,
(google::cloud::bigquery::biglake::v1::UpdateTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [14/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::biglake::v1::Catalog >  ,
ListCatalogs  ,
(google::cloud::bigquery::biglake::v1::ListCatalogsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [15/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::biglake::v1::Database >  ,
ListDatabases  ,
(google::cloud::bigquery::biglake::v1::ListDatabasesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [16/16]

google::cloud::bigquery_biglake_v1_mocks::MockMetastoreServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::biglake::v1::Table >  ,
ListTables  ,
(google::cloud::bigquery::biglake::v1::ListTablesRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::options ( )
inlinevirtualinherited

◆ RenameTable()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::RenameTable ( google::cloud::bigquery::biglake::v1::RenameTableRequest const &  request)
virtualinherited

◆ UpdateDatabase()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Database > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::UpdateDatabase ( google::cloud::bigquery::biglake::v1::UpdateDatabaseRequest const &  request)
virtualinherited

◆ UpdateTable()

virtual StatusOr< google::cloud::bigquery::biglake::v1::Table > google::cloud::bigquery_biglake_v1::MetastoreServiceConnection::UpdateTable ( google::cloud::bigquery::biglake::v1::UpdateTableRequest const &  request)
virtualinherited