]> Cypherpunks repositories - gostls13.git/commitdiff
testing/fstest: fix function name and comment
authorcuishuang <imcusg@gmail.com>
Mon, 13 Jan 2025 17:11:22 +0000 (01:11 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 14 Jan 2025 17:43:06 +0000 (09:43 -0800)
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>

src/testing/fstest/testfs.go

index 2917a303b20adfed093f1fcf8504a6507af80653..affdfa64291ba8a4b04083d60d11523177b87821 100644 (file)
@@ -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)