0

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.

megha
  • 3
  • 2

1 Answers1

0

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.

David Reed
  • 2,522
  • 2
  • 16
  • 16