Class TestCasesConnection (2.22.0)

This interface defines virtual methods for each of the user-facing overload sets in TestCasesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TestCasesClient.

To create a concrete instance, see MakeTestCasesConnection().

For mocking, see dialogflow_cx_mocks::MockTestCasesConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListTestCases(google::cloud::dialogflow::cx::v3::ListTestCasesRequest)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ListTestCasesRequest
Returns
TypeDescription
StreamRange< google::cloud::dialogflow::cx::v3::TestCase >

virtual BatchDeleteTestCases(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &
Returns
TypeDescription
Status

virtual GetTestCase(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual CreateTestCase(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual UpdateTestCase(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >

virtual BatchRunTestCases(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >

virtual CalculateCoverage(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse >

virtual ImportTestCases(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >

virtual ExportTestCases(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >

virtual ListTestCaseResults(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest
Returns
TypeDescription
StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult >

virtual GetTestCaseResult(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult >