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
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