In the report it says 1 of 2 branches missed for the below conditions checks in the code
Please let me know how could make it work 100% coverage for the above conditions
Hi @Srinivas_Opti ,
To have the perfect testsuite, you need to write test cases for the negative scenarios as well.
Considering your code for instance:
You might have written test case if this conditions hold true, but you also need to write test cases for false conditions:
Here, if xssFilter is null and/or httpResponse is null what should happen ?
Hope this helps!