My apologies if this can be a naive query, however I used to be unable to seek out any related matters right here or on StackOverFlow. I’m conscious that testing public features are typically really useful, and the take a look at perform’s naming conference is TestFoo() the place Foo() is the general public perform.
Nonetheless, say if I wish to take a look at a non-public perform referred to as doStuff(), then which would be the idiomatic method to identify the take a look at perform for it.
- TestDoStuff()
- TestdoStuff()
- Test_doStuff()
- Different (Please point out in reply)
Whereas comprehensible, beginning a perform identify with a lowercase letter is mostly not really useful in C++. It will possibly result in naming conflicts and readability points.