(pkg string, test string, result Result)
| 268 | } |
| 269 | |
| 270 | func (p *packageTracker) SetResult(pkg string, test string, result Result) { |
| 271 | if pkg == "" { |
| 272 | return |
| 273 | } |
| 274 | pkgObj := p.ensurePackage(pkg) |
| 275 | if test == "" { |
| 276 | pkgObj.Result = result |
| 277 | return |
| 278 | } |
| 279 | testCase := p.ensureTest(pkgObj, test) |
| 280 | testCase.Result = result |
| 281 | } |
| 282 | |
| 283 | func (p *packageTracker) SetCoverage(pkg string, test string, coverage float64) { |
| 284 | if pkg == "" { |
no test coverage detected