in src/main/resources/static/coverage.js [454:469]
async provideCoveragePercentages(changeNum, path, patchNum) {
const changeInfo = {
host: this.getNormalizedHost(window.location.host),
project: this.parseProjectFromPathName(window.location.pathname),
changeNum: parseInt(changeNum),
patchNum: parseInt(patchNum),
};
this.updateCoverageDataIfNecessary(changeInfo);
try {
const coveragePercentages = await this.coverageData.percentagesPromise;
return coveragePercentages[path];
} catch(error) {
console.log(error);
return null;
}
}