How Does Test Coverage Work for Enums and Properties in Apex?

On April 8, 2025, Posted by , In Apex,Salesforce, By ,, , With Comments Off on How Does Test Coverage Work for Enums and Properties in Apex?

Question: I recently noticed some unusual behavior in Apex test coverage and wanted to confirm whether this has always been the case or if something has changed over time. Specifically, I observed that: Consider the following class containing only an enum: Even when this enum is used in test cases,…