]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/fsys: improve initOverlay test helper
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 13 Sep 2023 01:36:44 +0000 (18:36 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 20 Sep 2023 18:52:11 +0000 (18:52 +0000)
commit77a1104975ebf5646f38978a054afe7ca4501fd8
tree8c46c434eb70bcaa4ef1758f9949b8bf36cefca3
parentd5138e580c2404f2b8f03d2e1e32b2226cb6bbbc
cmd/go/internal/fsys: improve initOverlay test helper

1. Remove the use of fmt.Sprintf from t.Fatal.

2. Check for errors from initFromJSON.

3. Move 'overlay=0' to a separate cleanup function, for clarity.

Change-Id: I4d0daad248e8f26b6f159b4cc7e77fd60dc1ed98
Reviewed-on: https://go-review.googlesource.com/c/go/+/527700
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Kirill Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/fsys/fsys_test.go