Application developers may want to test their code with simulated responses, including errors, from an object of type TransitionRouteGroupsClient. To do so, construct an object of type TransitionRouteGroupsClient 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.
[[["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."],[[["The provided content is for the `MockTransitionRouteGroupsConnection` class, which is part of the Dialogflow CX C++ library, with version 2.37.0-rc being the latest release."],["This class enables application developers to test their code with simulated responses from a `TransitionRouteGroupsClient`, utilizing Google Test framework functions and gMock for programming behavior."],["The `MockTransitionRouteGroupsConnection` class offers methods like `ListTransitionRouteGroups`, `GetTransitionRouteGroup`, `CreateTransitionRouteGroup`, `UpdateTransitionRouteGroup`, and `DeleteTransitionRouteGroup` for managing transition route groups."],["This class also provides functions for interacting with locations and operations, including `ListLocations`, `GetLocation`, `ListOperations`, `GetOperation`, and `CancelOperation`, which are also implemented using gMock."],["This mock class supports multiple previous versions of the library such as 2.36.0, 2.35.0, and going back as far as 2.11.0, which are all linked as well."]]],[]]