How do i cover code coverage for a return statement.I am not using pagereference.
if(atleastoneselected==false){
errMsg='No contacts Selected';//not covered
return page.importfile;//not covered
}
if(smstoggle==false && Emailtoggle==false){
errMsg='Select the required toggle'; //not covered
return page.importfile;//not covered
}
if(smstoggle|| Emailtoggle){//covered
sucmsg=null; //covered
}
if( smstoggle && Emailtoggle){
sucmsg=null;//not covered
}