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
sujin h ssujin h s 

Which is the exact code coverage?

My overall code coverage is showing 100%
User-added image

But in the "Code coverage" button on top left corner the test methods are showing diffrent % of coverages
User-added image

Can anyone explain what this exactly means? Is this also need to be >75% ?
Best Answer chosen by sujin h s
SwethaSwetha (Salesforce Developers) 
As per https://help.salesforce.com/articleView?id=code_dev_console_tests_coverage.htm&type=5,
The Code Coverage menu will include one or more of the following options depending on the tests you have implemented:
> None
> All Tests: The percentage of code coverage from all test runs.
> className.methodName: The percentage of code coverage from a method executed during a test run.

When you open the class GnattOppController, you will see that lines of code that are covered by tests are blue and ones not covered are red.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you