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
priyanka.mv26priyanka.mv26 

Test coverage for setCookies method

I am adding cookie to my page in the controller using 

 

ApexPages.currentPage().setCookies(new Cookie[]{CookieName});

 

When am trying to get the code coverage, my test class is not covering the above line.

How to get the code coverage for the above setcookie method in the test class.