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
ShaSha 

test class code coverage needed for trigger

trigger Job_Count_Trigger on Job__c (after insert, after update, after delete, after undelete) 
{
    list <Job__c> Jobs = Trigger.isDelete ? Trigger.old : Trigger.new; 
    set<Id> compIds= new Set<Id>();
    List<company__c> compRollup = new List<company__c>();  
    
    
   // Job_count_trigger_handler.updateMethod(trigger.new);
   
    for (AggregateResult co : [SELECT Company__c compId, Count(id) JobCount FROM Job__c group by Company__c ])
     {
        
      if(co.get('compId')!=null)
      {
        Company__c c= new Company__c();
         system.debug('id in loop + '+ co.get('compId'));
        c.Id = (Id) co.get('compId');
        c.Count_of_Jobs__c = (Integer) co.get('JobCount');
        compRollup.add(c);
      }
         else
         {
             
             System.debug('### Empty Conpany');
         }
         
     }
        system.debug(''+compRollup);
    update compRollup;
    }
Hi Please help on writing the test class for trigger..

Thanks 
shareef,