Class MockCatalogServiceConnection (2.23.0-rc)

A class to mock CatalogServiceConnection.

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

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
Options

virtual CreateEntryType(google::cloud::dataplex::v1::CreateEntryTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateEntryTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::EntryType > >

virtual UpdateEntryType(google::cloud::dataplex::v1::UpdateEntryTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateEntryTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::EntryType > >

virtual DeleteEntryType(google::cloud::dataplex::v1::DeleteEntryTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteEntryTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListEntryTypes(google::cloud::dataplex::v1::ListEntryTypesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListEntryTypesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::EntryType >

virtual GetEntryType(google::cloud::dataplex::v1::GetEntryTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetEntryTypeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::EntryType >

virtual CreateAspectType(google::cloud::dataplex::v1::CreateAspectTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateAspectTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::AspectType > >

virtual UpdateAspectType(google::cloud::dataplex::v1::UpdateAspectTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateAspectTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::AspectType > >

virtual DeleteAspectType(google::cloud::dataplex::v1::DeleteAspectTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteAspectTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListAspectTypes(google::cloud::dataplex::v1::ListAspectTypesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListAspectTypesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::AspectType >

virtual GetAspectType(google::cloud::dataplex::v1::GetAspectTypeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetAspectTypeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::AspectType >

virtual CreateEntryGroup(google::cloud::dataplex::v1::CreateEntryGroupRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateEntryGroupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::EntryGroup > >

virtual UpdateEntryGroup(google::cloud::dataplex::v1::UpdateEntryGroupRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateEntryGroupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::EntryGroup > >

virtual DeleteEntryGroup(google::cloud::dataplex::v1::DeleteEntryGroupRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteEntryGroupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListEntryGroups(google::cloud::dataplex::v1::ListEntryGroupsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListEntryGroupsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::EntryGroup >

virtual GetEntryGroup(google::cloud::dataplex::v1::GetEntryGroupRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetEntryGroupRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::EntryGroup >

virtual CreateEntry(google::cloud::dataplex::v1::CreateEntryRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateEntryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Entry >

virtual UpdateEntry(google::cloud::dataplex::v1::UpdateEntryRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateEntryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Entry >

virtual DeleteEntry(google::cloud::dataplex::v1::DeleteEntryRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteEntryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Entry >

virtual ListEntries(google::cloud::dataplex::v1::ListEntriesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListEntriesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Entry >

virtual GetEntry(google::cloud::dataplex::v1::GetEntryRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetEntryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Entry >

virtual LookupEntry(google::cloud::dataplex::v1::LookupEntryRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::LookupEntryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Entry >

virtual SearchEntries(google::cloud::dataplex::v1::SearchEntriesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::SearchEntriesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::SearchEntriesResult >