+ Start a Discussion
StaciStaci 

code coverage 2 lines

I have a test class that is 68% covered.  I have 2 lines throughout that I cannot get covered.  Can anyone help me get them covered?
Its the 2 lines after the else statement.  
 
if (oldCase.Substatus__c == 'Open with Cat Support') {
                                // Log into the "Open with Cat Support" bucket
                                if(c.Accumulated_Duration_Open_with_Cat_Supp__c != Null) {
                                  c.Accumulated_Duration_Open_with_Cat_Supp__c += elapsedHours;
                                }
                                else {
                                    c.Accumulated_Duration_Open_with_Cat_Supp__c = 0.0;
                                    c.Accumulated_Duration_Open_with_Cat_Supp__c += elapsedHours;
                                }
                            }

 
Amit Chaudhary 8Amit Chaudhary 8
Can you please post your full apex class with Test class so that we can help you
StaciStaci
I won't let me add it in the comments, its too long
StaciStaci
It won't let me create a new question with it either, its too large