mirror of
https://github.com/golang/go
synced 2024-11-18 09:14:43 -07:00
c8d9e05b1c
Returning 'metBy' from expectations was not an ideal API, as extracting the result value was cumbersome and error prone. It also forced quite a bit of plumbing. Using OnceMet, we can improve this by instead using a 'ReadDiagnostics' expectation that reads diagnostics into a variable. For golang/go#39384 Change-Id: Ia73e5b496089240df3200626e5696305cb507c9a Reviewed-on: https://go-review.googlesource.com/c/tools/+/255126 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
hooks | ||
regtest |