Appropriately sampling DUT inputs for functional coverage

In reply to dave_59:

Hi Dave, thanks for the reply

I think what you’ve said makes sense - we don’t want to collect coverage on a failing test.

Are there any good examples of these kind of guards? Is it best to then hold off sampling coverage for say, a transaction item, until the test using that item is complete?

Thanks