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
devloper sfdcdevloper sfdc 

code coverage problem with split string

string example = 'one;two;three';
List<String> list = new List<String>();
for(String s : example.split(';'))
{
list.add(s);
}
Raj VakatiRaj Vakati
Here is the code
 
string example = 'one;two;three'; 
List<String> lists = example.split(';');
System.debug('lists'+lists);

 
devloper sfdcdevloper sfdc
Hi raj

i have also code  but my problem  i need the test class of code that cover 100% code coverage.


 
Amit Chaudhary 8Amit Chaudhary 8
Please post your full apex class and test class so that we can help you here
devloper sfdcdevloper sfdc
Hi Amit,
Please reply Possible solution