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
Geetha BGeetha B 

i am unable to do code coverage

hi
   I am unable to pass else part in test class can any one help me
PratikPratik (Salesforce Developers) 
Hi Geetha,

To pass the else part, insert or update the record in the test class with the field value different than it's mentioned to meet the IF condition true.

You can refer to:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_best_practices.htm

Thanks,
Pratik