Skip to content

Commit b44f637

Browse files
dolmenmvdan
authored andcommitted
io/fs: godoc links to testing/fstest
Add godoc links from io/fs to testing/fstest for discoverability. Change-Id: I6550b4b703d2214faa732987ec8630ac903705b5 Reviewed-on: https://go-review.googlesource.com/c/go/+/534095 Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent 202b435 commit b44f637

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/io/fs/fs.go

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// Package fs defines basic interfaces to a file system.
66
// A file system can be provided by the host operating system
77
// but also by other packages.
8+
//
9+
// See the [testing/fstest] package for support with testing
10+
// implementations of file systems.
811
package fs
912

1013
import (
@@ -18,6 +21,9 @@ import (
1821
// The FS interface is the minimum implementation required of the file system.
1922
// A file system may implement additional interfaces,
2023
// such as [ReadFileFS], to provide additional or optimized functionality.
24+
//
25+
// [testing/fstest.TestFS] may be used to test implementations of an FS for
26+
// correctness.
2127
type FS interface {
2228
// Open opens the named file.
2329
//

0 commit comments

Comments
 (0)