Class MockPipelineServiceConnection (2.20.0)

A class to mock PipelineServiceConnection.

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

virtual CreateTrainingPipeline(google::cloud::aiplatform::v1::CreateTrainingPipelineRequest const &)

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::CreateTrainingPipelineRequest const &
Returns
Type Description
StatusOr< google::cloud::aiplatform::v1::TrainingPipeline >

virtual GetTrainingPipeline(google::cloud::aiplatform::v1::GetTrainingPipelineRequest const &)

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::GetTrainingPipelineRequest const &
Returns
Type Description
StatusOr< google::cloud::aiplatform::v1::TrainingPipeline >

virtual ListTrainingPipelines(google::cloud::aiplatform::v1::ListTrainingPipelinesRequest)

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::ListTrainingPipelinesRequest
Returns
Type Description
StreamRange< google::cloud::aiplatform::v1::TrainingPipeline >

virtual DeleteTrainingPipeline(google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const &)

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::DeleteTrainingPipelineRequest const &
Returns
Type Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > >

virtual CancelTrainingPipeline(google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const &)

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::CancelTrainingPipelineRequest const &
Returns
Type Description
Status

virtual CreatePipelineJob(google::cloud::aiplatform::v1::CreatePipelineJobRequest const &)

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::CreatePipelineJobRequest const &
Returns
Type Description
StatusOr< google::cloud::aiplatform::v1::PipelineJob >

virtual GetPipelineJob(google::cloud::aiplatform::v1::GetPipelineJobRequest const &)

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::GetPipelineJobRequest const &
Returns
Type Description
StatusOr< google::cloud::aiplatform::v1::PipelineJob >

virtual ListPipelineJobs(google::cloud::aiplatform::v1::ListPipelineJobsRequest)

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::ListPipelineJobsRequest
Returns
Type Description
StreamRange< google::cloud::aiplatform::v1::PipelineJob >

virtual DeletePipelineJob(google::cloud::aiplatform::v1::DeletePipelineJobRequest const &)

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::DeletePipelineJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > >

virtual CancelPipelineJob(google::cloud::aiplatform::v1::CancelPipelineJobRequest const &)

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::CancelPipelineJobRequest const &
Returns
Type Description
Status