(pkg string, test string, coverage float64)
| 281 | } |
| 282 | |
| 283 | func (p *packageTracker) SetCoverage(pkg string, test string, coverage float64) { |
| 284 | if pkg == "" { |
| 285 | return |
| 286 | } |
| 287 | pkgObj := p.ensurePackage(pkg) |
| 288 | if test == "" { |
| 289 | pkgObj.Coverage = &coverage |
| 290 | return |
| 291 | } |
| 292 | testCase := p.ensureTest(pkgObj, test) |
| 293 | testCase.Coverage = &coverage |
| 294 | } |
| 295 | |
| 296 | func (p *packageTracker) AddReason(pkg string, reason string) { |
| 297 | if pkg == "" { |
no test coverage detected