Skip to content

Commit befc436

Browse files
cuishuanggopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Damien Neil <[email protected]>
1 parent c83f2ca commit befc436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/fstest/testfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func (t *fsTester) checkFileRead(file, desc string, data1, data2 []byte) {
570570
}
571571
}
572572

573-
// checkBadPath checks that various invalid forms of file's name cannot be opened using t.fsys.Open.
573+
// checkOpen validates file opening behavior by attempting to open and then close the given file path.
574574
func (t *fsTester) checkOpen(file string) {
575575
t.checkBadPath(file, "Open", func(file string) error {
576576
f, err := t.fsys.Open(file)

0 commit comments

Comments
 (0)