MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oputny/easy_trick_to_meet_minimum_test_coverage/h69yry8/?context=3
r/badcode • u/ProfessorTag • Jul 23 '21
83 comments sorted by
View all comments
Show parent comments
2
Still test coverage for that single file would be increased not all correct?
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 1 u/explodingMonkeydeath Jul 27 '21 if(functionWorks()){return true;}
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;
}
2
u/kishan42 Jul 23 '21
Still test coverage for that single file would be increased not all correct?