Skip to content

Add support for mocking (wrapping) functions in tests #5138

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

Closed
bheads opened this issue Apr 22, 2020 · 1 comment
Closed

Add support for mocking (wrapping) functions in tests #5138

bheads opened this issue Apr 22, 2020 · 1 comment

Comments

@bheads
Copy link

bheads commented Apr 22, 2020

Mocking is an extremely useful tool in testing, but in a non-OO it can be tricky. One way to do this is via function wrapping in the linker. Currently that means LLD, but that an implementation detail. I bet the compiler could do a better job wrapping functions in test in a test build.

@andrewrk
Copy link
Member

Duplicate of #500

@andrewrk andrewrk marked this as a duplicate of #500 May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants