googleapis / google-cloud-cpp

C++ Client Libraries for Google Cloud Services
https://cloud.google.com/
Apache License 2.0
530 stars 353 forks source link

Add code sample using generated mocks #12692

Open scotthart opened 9 months ago

scotthart commented 9 months ago

Currently compute mocks are not used in any build or test, adding a sample would correct that and increase the breadth of documentation for the library.

coryan commented 9 months ago

It is more general than compute. We generate mocks for all classes and never test that this code compiles (or show how to use it).

scotthart commented 3 months ago

Update guides on how to mock any library, including those with generated mocks.