diff options
| author | cuishuang <imcusg@gmail.com> | 2025-01-14 01:11:22 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-01-14 09:43:06 -0800 |
| commit | befc43655b6d93f0be883222fbb3fde5768892c1 (patch) | |
| tree | 5b7731a80624f6d6bd814ba2fe9fc865af569f51 /src | |
| parent | c83f2ca4b3964917adc3b06f661785cc6b53792d (diff) | |
| download | go-befc43655b6d93f0be883222fbb3fde5768892c1.tar.xz | |
testing/fstest: fix function name and comment
Change-Id: I17bc68a2e3a96d0dc3d9ddcad40149df37fc4839
Reviewed-on: https://go-review.googlesource.com/c/go/+/642198
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/testing/fstest/testfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/fstest/testfs.go b/src/testing/fstest/testfs.go index 2917a303b2..affdfa6429 100644 --- a/src/testing/fstest/testfs.go +++ b/src/testing/fstest/testfs.go @@ -570,7 +570,7 @@ func (t *fsTester) checkFileRead(file, desc string, data1, data2 []byte) { } } -// checkBadPath checks that various invalid forms of file's name cannot be opened using t.fsys.Open. +// checkOpen validates file opening behavior by attempting to open and then close the given file path. func (t *fsTester) checkOpen(file string) { t.checkBadPath(file, "Open", func(file string) error { f, err := t.fsys.Open(file) |
