in x-test.js [1348:1357]
static coverage(context, href, goal) {
if (context && !context.state.bailed) {
if (!(goal >= 0 && goal <= 100)) {
throw new Error(`Unexpected goal percentage "${goal}".`);
}
const coverageId = context.uuid();
const url = new URL(href, context.state.href);
context.publish('x-test-suite-register', { type: 'coverage', coverageId, href: url.href, goal });
}
}