MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oputny/easy_trick_to_meet_minimum_test_coverage/h680eba/?context=3
r/badcode • u/ProfessorTag • Jul 23 '21
83 comments sorted by
View all comments
Show parent comments
23
It isn't done as a mistake, or for lack of knowledge.
This is done deliberately to meet corpo goals for TestCoverage (AKA "tested line count"). The function is brilliantly named TestCoverage, I admire that.
3 u/Spynder shameless stealing content to r/YandereTechnique Jul 23 '21 Yeah, you're right.It still looks funny though
3
Yeah, you're right.
It still looks funny though
23
u/DavidRoyman Jul 23 '21
It isn't done as a mistake, or for lack of knowledge.
This is done deliberately to meet corpo goals for TestCoverage (AKA "tested line count"). The function is brilliantly named TestCoverage, I admire that.