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

Unable to cover the below lines in my test class, however i have already inserted the objects

for (Account_Partners__c pr: listPartner) {
            if (pr.Partner__c == parentId) {
                return pageRef;
            } else if (pr.Partner__c != null) {
                pr.Account_Name__c = parentId;

Soap UiSoap Ui
Create a 2 methods in test class.

first method will cover the IF condition

and second method will core the else part. 

If you want detail pls provide us test class code i will help you