Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::dialogflow_cx_mocks::MockTestCasesConnection Class Reference

A class to mock TestCasesConnection. More...

#include <google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::TestCase >, ListTestCases,(google::cloud::dialogflow::cx::v3::ListTestCasesRequest request),(override))
 
 MOCK_METHOD (Status, BatchDeleteTestCases,(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::TestCase >, GetTestCase,(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::TestCase >, CreateTestCase,(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::TestCase >, UpdateTestCase,(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >, RunTestCase,(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >, BatchRunTestCases,(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse >, CalculateCoverage,(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >, ImportTestCases,(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >, ExportTestCases,(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult >, ListTestCaseResults,(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult >, GetTestCaseResult,(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCase > ListTestCases (google::cloud::dialogflow::cx::v3::ListTestCasesRequest request)
 
virtual Status BatchDeleteTestCases (google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > GetTestCase (google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > CreateTestCase (google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > UpdateTestCase (google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > > RunTestCase (google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > > BatchRunTestCases (google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse > CalculateCoverage (google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > > ImportTestCases (google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > > ExportTestCases (google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult > ListTestCaseResults (google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult > GetTestCaseResult (google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &request)
 

Detailed Description

A class to mock TestCasesConnection.

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

◆ BatchDeleteTestCases()

virtual Status google::cloud::dialogflow_cx::TestCasesConnection::BatchDeleteTestCases ( google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &  request)
virtualinherited

◆ BatchRunTestCases()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > > google::cloud::dialogflow_cx::TestCasesConnection::BatchRunTestCases ( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &  request)
virtualinherited

◆ CalculateCoverage()

virtual StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse > google::cloud::dialogflow_cx::TestCasesConnection::CalculateCoverage ( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &  request)
virtualinherited

◆ CreateTestCase()

virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > google::cloud::dialogflow_cx::TestCasesConnection::CreateTestCase ( google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &  request)
virtualinherited

◆ ExportTestCases()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > > google::cloud::dialogflow_cx::TestCasesConnection::ExportTestCases ( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &  request)
virtualinherited

◆ GetTestCase()

virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > google::cloud::dialogflow_cx::TestCasesConnection::GetTestCase ( google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &  request)
virtualinherited

◆ GetTestCaseResult()

virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult > google::cloud::dialogflow_cx::TestCasesConnection::GetTestCaseResult ( google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &  request)
virtualinherited

◆ ImportTestCases()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > > google::cloud::dialogflow_cx::TestCasesConnection::ImportTestCases ( google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &  request)
virtualinherited

◆ ListTestCaseResults()

virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult > google::cloud::dialogflow_cx::TestCasesConnection::ListTestCaseResults ( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest  request)
virtualinherited

◆ ListTestCases()

virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCase > google::cloud::dialogflow_cx::TestCasesConnection::ListTestCases ( google::cloud::dialogflow::cx::v3::ListTestCasesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >  ,
BatchRunTestCases  ,
(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >  ,
ExportTestCases  ,
(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >  ,
ImportTestCases  ,
(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >  ,
RunTestCase  ,
(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [6/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( Status  ,
BatchDeleteTestCases  ,
(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse >  ,
CalculateCoverage  ,
(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::TestCase >  ,
CreateTestCase  ,
(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::TestCase >  ,
GetTestCase  ,
(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::TestCase >  ,
UpdateTestCase  ,
(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult >  ,
GetTestCaseResult  ,
(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::TestCase >  ,
ListTestCases  ,
(google::cloud::dialogflow::cx::v3::ListTestCasesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [13/13]

google::cloud::dialogflow_cx_mocks::MockTestCasesConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult >  ,
ListTestCaseResults  ,
(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::dialogflow_cx::TestCasesConnection::options ( )
inlinevirtualinherited

◆ RunTestCase()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > > google::cloud::dialogflow_cx::TestCasesConnection::RunTestCase ( google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &  request)
virtualinherited

◆ UpdateTestCase()

virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > google::cloud::dialogflow_cx::TestCasesConnection::UpdateTestCase ( google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &  request)
virtualinherited