How do i cover containskey() and keyset() method? i only cover 68% of my code. here's my class
here's my test class
@isTest
private class testCheckPickedLead{
static testMethod void myMassUpdate()
{
Test.startTest();
//insert test lead
Lead testLead = new Lead(LastName='test',Company='testcompany',OwnerId='00G90000002zs7H',Status='Open',Is_Picked__c=TRUE);
insert testLead;
List<Task> listTask = new List<Task>();
for(Integer i=0;i<16;i++){
listTask.add(new Task(WhoId=testLead.id,Subject='Call '+i,Type='Unreached Call',Status='Completed'));
}
insert listTask;
map<Id, List<Task>> map1 = new map<Id, List<Task>>();
for(Task t : listTask)
{
map1.put(t.WhoId, new List<Task>{t});
}
System.schedule('testBasicScheduledApex', '0 31 13 * * ?', new checkPickedLead());
Test.stopTest();
}
}