(pkg string, test string, startTime time.Time)
| 238 | } |
| 239 | |
| 240 | func (p *packageTracker) SetTestStartTime(pkg string, test string, startTime time.Time) { |
| 241 | if pkg == "" { |
| 242 | return |
| 243 | } |
| 244 | pkgObj := p.ensurePackage(pkg) |
| 245 | if test == "" { |
| 246 | if pkgObj.StartTime == nil { |
| 247 | pkgObj.StartTime = &startTime |
| 248 | } |
| 249 | return |
| 250 | } |
| 251 | testCase := p.ensureTest(pkgObj, test) |
| 252 | if testCase.StartTime == nil { |
| 253 | testCase.StartTime = &startTime |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | func (p *packageTracker) SetTestElapsed(pkg string, test string, elapsed time.Duration) { |
| 258 | if pkg == "" { |
no test coverage detected