(pkg string, test string, elapsed time.Duration)
| 255 | } |
| 256 | |
| 257 | func (p *packageTracker) SetTestElapsed(pkg string, test string, elapsed time.Duration) { |
| 258 | if pkg == "" { |
| 259 | return |
| 260 | } |
| 261 | pkgObj := p.ensurePackage(pkg) |
| 262 | if test == "" { |
| 263 | pkgObj.Duration = elapsed |
| 264 | return |
| 265 | } |
| 266 | testCase := p.ensureTest(pkgObj, test) |
| 267 | testCase.Duration = elapsed |
| 268 | } |
| 269 | |
| 270 | func (p *packageTracker) SetResult(pkg string, test string, result Result) { |
| 271 | if pkg == "" { |
no test coverage detected