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
shravani milshravani mil 

how to cover this lines

if(u.Postal_Codes__c<>null){
                        if (SrPostalCode==null){
                            SrPostalCode=u.Postal_Codes__c;
                            SrPostalCode =  SrPostalcode.replace(';', ',');
                            
                        }
                        else{
                            if(!SrPostalCode.contains(u.Postal_Codes__c))
                                SrPostalCode=SrPostalCode+','+u.Postal_Codes__c;
                                SrPostalCode = SrPostalcode.replace(';', ',');
                            }
                        }
Nishad KNishad K
Can u share you test class...? 
Nishad KNishad K
You can add a test case "Postal_Codes__c= value"(not null)