Skip to content

Is there a recommended way of creating mock functions using cmake-init? #123

Answered by friendlyanon
Kyr27 asked this question in Q&A
Discussion options

You must be logged in to vote

You don't "mock functions using cmake-init". You can just use regular old dependency injection and not hardcode the use of PostMessage, but that's just one way of dealing with making software testable.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kyr27
Comment options

Answer selected by Kyr27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants