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
SunnyalexSunnyalex 

How to cover these line of apex code in test class

String.isnotBlank(rr.r.Receipt_status__c) && 
                    rr.r.Receipt_status__c.equalsIgnoreCase('Processed for industry') && 
                    String.isNotBlank(rr.rCloned.Ranking__c) &&
                    rr.rCloned.Banking__c.equalsIgnoreCase('Payment') && 
                    String.isNotBlank(rr.r.Currency__c) &&
                    !(rr.r.Currency__c.equalsIgnoreCase('Indian') || rr.r.Currency__c.equalsIgnoreCase('RUPEES')) &&
                    rr.rCloned.Forex__c == null
                ) {
                    rr.style2 = 'error';
                    error = true;
AnudeepAnudeep (Salesforce Developers) 
Can you please post the entire code here? You need to populate all the fields on the object referenced in your code