function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priyakaran1320Priyakaran1320 

APEx code coverage

Hey guys if anyone can tell me how to increase the ode coverage of a apex class as I m facing problem in that of sdime one can explain me that in detail it would be great 

bob_buzzardbob_buzzard

Code coverage is all about executing your code in a unit test context.  If you don't have coverage that usually means that you haven't set your test data up correctly to hit the possible routes.

 

Its a bit tricky to say without seeing the code - can you post the code and details of which lines you don't have coverage for?