Wednesday, May 8, 2024
HomeGolangIs there any particular naming conference for Take a look at features...

Is there any particular naming conference for Take a look at features of personal features? – Getting Assist


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.

  1. TestDoStuff()
  2. TestdoStuff()
  3. Test_doStuff()
  4. 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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments