Application developers may want to test their code with simulated responses, including errors, from an object of type SecureSourceManagerClient. To do so, construct an object of type SecureSourceManagerClient 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-03-14 UTC."],[[["This webpage provides documentation for the `MockSecureSourceManagerConnection` class, which is used to simulate responses for testing applications that interact with the `SecureSourceManagerClient`."],["The class offers mock implementations for several functions including `ListInstances`, `GetInstance`, `CreateInstance`, `DeleteInstance`, `ListRepositories`, `GetRepository`, `CreateRepository`, `DeleteRepository`, `GetIamPolicyRepo`, `SetIamPolicyRepo`, and `TestIamPermissionsRepo`, using `gMock`'s `MOCK_METHOD()`."],["The documentation lists numerous previous versions of the SecureSourceManager, ranging from 2.37.0-rc as the latest down to 2.18.0."],["The functions contained within the class allow a user to test out all of the various features of `SecureSourceManagerClient` through the use of the functions `virtual options()` as well as the variety of functions that interact with parameters and returns in the form of `request` and `operation`."],["The documentation includes a link to an example showing how to use GoogleTest, applying the underlying principles of the example to this `*Client` and `*Connection` pair, providing clarity on how to utilize the functions."]]],[]]