0
votes

I have written apex class but it is not showing in overall code coverage column in developer console. Apex class format :

public without sharing class Service {

public class ServiceGet {
public String sourceSystem;
public Customer customer;
public String status;
public BillingAccount billingAccount;}

}

I am calling this class in another apex class like Service.ServiceGet(). please help me for this issue.

1

1 Answers

0
votes

This code cannot be covered because it is not executable. Class and variable declarations never receive code coverage and do not count towards the overall coverage percentage.

See How do I increase my code coverage, or why can't I cover these lines? on Salesforce Stack Exchange for resources on how code coverage is calculated.