code testing coverage

what should be the percentage of code test coverage in junit for java code. Also what code is hard to test or cannot be tested with junit
LVL 2
SunScreenCertAsked:
Who is Participating?
 
hazgodukConnect With a Mentor Commented:
You can't test private functions with JUnit unless they are accessed by public functions that you can test. You can try JUnitX if you need to test private functions. As for a percentage, that's hard to say. The more coverage you have, the less you need to test manually
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.