API for location of cov files with `Pkg.test(; coverage = true)

Suppose a user activated a project and then called

import Pkg
Pkg.test(; coverage = true)

What would be the API for returning the location of the cov files (eg an src directory).

(I need this for LocalCoverage.jl). Related:

There’s pkgdir available from Base; I’m not totally sure if that’s what you need or not though.

Not really, but I may have to refactor the API to use module names anyway. Cf this suggestion: