mirror of https://github.com/golang/go.git
When testing Highlight the highlight count is checked against expected number of highlights. If it doesn't match t.Errorf(...) is called and the test continues. A few lines below the test ranges over results using the index for both result and expected result leading to a panic if there are less then expected highlights. This change fails fast with t.Fatalf(...) instead to avoid the panic. Change-Id: I33d0973f3145c307d9084d037ffbb73b244a3acb Reviewed-on: https://go-review.googlesource.com/c/tools/+/236099 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| xcontext | ||