mirror of
https://github.com/golang/go
synced 2024-11-05 17:36:15 -07:00
internal/lsp/regtest: print completed work when a regtest fails
Change-Id: Ib1ea26c352f6e8b397ffda282f45a425a4278ab5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/236169 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
5298e130f1
commit
a45abac6c9
@ -87,7 +87,11 @@ func (s State) String() string {
|
|||||||
if name == "" {
|
if name == "" {
|
||||||
name = fmt.Sprintf("!NO NAME(token: %s)", token)
|
name = fmt.Sprintf("!NO NAME(token: %s)", token)
|
||||||
}
|
}
|
||||||
fmt.Fprintf(&b, "\t%s: %.2f", name, state.percent)
|
fmt.Fprintf(&b, "\t%s: %.2f\n", name, state.percent)
|
||||||
|
}
|
||||||
|
b.WriteString("#### completed work:\n")
|
||||||
|
for name, count := range s.completedWork {
|
||||||
|
fmt.Fprintf(&b, "\t%s: %d\n", name, count)
|
||||||
}
|
}
|
||||||
return b.String()
|
return b.String()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user