Send feedback
Class MockFeaturestoreServiceConnection (2.26.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.26.0 keyboard_arrow_down
A class to mock FeaturestoreServiceConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type FeaturestoreServiceClient
. To do so, construct an object of type FeaturestoreServiceClient
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
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Returns
Type
Description
Options
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::Featurestore > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::GetFeaturestoreRequest const &
Returns
Type
Description
StatusOr< google::cloud::aiplatform::v1::Featurestore >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::ListFeaturestoresRequest
Returns
Type
Description
StreamRange< google::cloud::aiplatform::v1::Featurestore >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::Featurestore > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::EntityType > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::GetEntityTypeRequest const &
Returns
Type
Description
StatusOr< google::cloud::aiplatform::v1::EntityType >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::ListEntityTypesRequest
Returns
Type
Description
StreamRange< google::cloud::aiplatform::v1::EntityType >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::UpdateEntityTypeRequest const &
Returns
Type
Description
StatusOr< google::cloud::aiplatform::v1::EntityType >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::Feature > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::BatchCreateFeaturesResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::GetFeatureRequest const &
Returns
Type
Description
StatusOr< google::cloud::aiplatform::v1::Feature >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::ListFeaturesRequest
Returns
Type
Description
StreamRange< google::cloud::aiplatform::v1::Feature >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::UpdateFeatureRequest const &
Returns
Type
Description
StatusOr< google::cloud::aiplatform::v1::Feature >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::ImportFeatureValuesResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::BatchReadFeatureValuesResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::ExportFeatureValuesResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameters
Name
Description
ExperimentalTag
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteFeatureValuesResponse > >
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
request
google::cloud::aiplatform::v1::SearchFeaturesRequest
Returns
Type
Description
StreamRange< google::cloud::aiplatform::v1::Feature >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[[["This webpage provides documentation for the `MockFeaturestoreServiceConnection` class, which is used to simulate responses and errors for testing `FeaturestoreServiceClient` objects in C++."],["The page lists various versions of the library, ranging from version 2.12.0 to 2.37.0-rc (latest), with links to the documentation for each respective version."],["The `MockFeaturestoreServiceConnection` class supports multiple functions related to feature stores, entity types, and features, such as creating, getting, listing, updating, deleting, importing, exporting, and searching."],["Each of the class's functions are implemented using gMock's `MOCK_METHOD()` allowing users to use it in their tests in conjunction with the Google Test framework."],["An example of using a similar mock class from the BigQuery library is provided, illustrating how to apply the principles of using mock objects in testing."]]],[]]