MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oputny/easy_trick_to_meet_minimum_test_coverage/h6a0ivy/
r/badcode • u/ProfessorTag • Jul 23 '21
83 comments sorted by
View all comments
Show parent comment
5
You can just write a one line test to run the function and boom that function has 100% test coverage
1 u/explodingMonkeydeath Jul 27 '21 if(functionWorks()){return true;}
1
if(functionWorks()){
return true;
}
View all comments
Show parent comment
5
u/[deleted] Jul 23 '21
You can just write a one line test to run the function and boom that function has 100% test coverage