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
forcecloud20forcecloud20 

help on code coverage for below method

 public void getcount()
   {
     if(opp.provider1__c!=null)
     {
      Score_Count__c scr = [select id,name from Score_Count__c where id = :opp.provider1__c];
      scorecnt= scr.name;     
     }
   }

Sapana WSapana W

Could you put your complete code here, just to get a clear picture.

KodiKodi

Hi,

 

Can u post your complete code.then only, i can write a code coverage.