(pkg string, test string, output []byte)
| 189 | } |
| 190 | |
| 191 | func (p *packageTracker) AddOutput(pkg string, test string, output []byte) { |
| 192 | pkgObj := p.ensurePackage(pkg) |
| 193 | if test == "" { |
| 194 | pkgObj.Output = pkgObj.Output + string(output) + "\n" |
| 195 | return |
| 196 | } |
| 197 | testCase := p.ensureTest(pkgObj, test) |
| 198 | testCase.Output = testCase.Output + string(output) + "\n" |
| 199 | } |
| 200 | |
| 201 | func (p *packageTracker) ensureTest(pkgObj *Package, test string) *TestCase { |
| 202 | if _, ok := pkgObj.TestCasesByName[test]; !ok { |
no test coverage detected