Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code sample using generated mocks #12692

Open
scotthart opened this issue Sep 21, 2023 · 3 comments
Open

Add code sample using generated mocks #12692

scotthart opened this issue Sep 21, 2023 · 3 comments
Labels
cpp: backlog While desirable, we do not have time to work on this for the foreseeable future. cpp: generator Issues related to the C++ micro-generator samples Issues that are directly related to samples. type: cleanup An internal cleanup or hygiene concern.

Comments

@scotthart
Copy link
Member

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.

@scotthart scotthart added type: cleanup An internal cleanup or hygiene concern. api: compute Issues related to the Compute Engine API. labels Sep 21, 2023
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 21, 2023
@coryan coryan changed the title Add code sample using compute mocks Add code sample using generated mocks Sep 21, 2023
@coryan
Copy link
Contributor

coryan commented Sep 21, 2023

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).

@coryan coryan added cpp: generator Issues related to the C++ micro-generator and removed api: compute Issues related to the Compute Engine API. labels Sep 21, 2023
@scotthart scotthart added the cpp: backlog While desirable, we do not have time to work on this for the foreseeable future. label Mar 13, 2024
@scotthart
Copy link
Member Author

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

@scotthart
Copy link
Member Author

We're still interested in improving this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp: backlog While desirable, we do not have time to work on this for the foreseeable future. cpp: generator Issues related to the C++ micro-generator samples Issues that are directly related to samples. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

2 participants