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
AbAb 

Code coverage problem | code not getting covered inspite of execution of logs

Hello,

I have written a test class for a fucntion.
I  wrote some debug logs in the function.

The debug logs are getting executed but the code coverage is non.

The logic between debug logs should have been executed as the system.debug got executed..
i wonded how to resolve this issue..
 
Best Answer chosen by Ab
Arshadulla.ShariffArshadulla.Shariff
Hello sandrine,

Check out are referring the class correctly, by creating an instance and calling the class methods.
Please share a code snippet, so we can assist you accordingly.

I hope this helps.
Thanks 
Arshad