You need to sign in to do that
Don't have an account?
Akhil Katkam 5
Test class for these 3 lines
Hi developer Community ,
i have an apex class where it covered only 93%test coverage , there are 4 lines which are needed to be covered , can ayone please help wit the suggestions or solutions
Thnaks in Advance
i have an apex class where it covered only 93%test coverage , there are 4 lines which are needed to be covered , can ayone please help wit the suggestions or solutions
for (Schema.DescribeIconResult describeIcon : describeTabResult.getIcons()) { if (describeIcon.getContentType() == 'image/svg+xml'){ return 'custom:' + describeIcon.getUrl().substringBetween('custom/','.svg').substringBefore('_'); }
Thnaks in Advance
Greeting!
Can you share your code here for a better understanding? If not, try to create another condition keeping this condition in that function and check the coverage.
If you find your answer then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
Hi Suraj , thanks for the reply , plz check here for the full code