MCPcopy Create free account
hub / github.com/GoTestTools/gotestfmt / SetResult

Method SetResult

parser/parse.go:270–281  ·  view source on GitHub ↗
(pkg string, test string, result Result)

Source from the content-addressed store, hash-verified

268}
269
270func (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
283func (p *packageTracker) SetCoverage(pkg string, test string, coverage float64) {
284 if pkg == "" {

Callers 1

parseFunction · 0.95

Calls 2

ensurePackageMethod · 0.95
ensureTestMethod · 0.95

Tested by

no test coverage detected