From b44f6378233ada888f0dc79e0ac56def4673d9ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 9 Oct 2023 22:36:01 +0200 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Bryan Mills --- src/io/fs/fs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/io/fs/fs.go b/src/io/fs/fs.go index d6c75c4cf4..6891d75a0e 100644 --- a/src/io/fs/fs.go +++ b/src/io/fs/fs.go @@ -5,6 +5,9 @@ // Package fs defines basic interfaces to a file system. // A file system can be provided by the host operating system // but also by other packages. +// +// See the [testing/fstest] package for support with testing +// implementations of file systems. package fs import ( @@ -18,6 +21,9 @@ import ( // The FS interface is the minimum implementation required of the file system. // A file system may implement additional interfaces, // such as [ReadFileFS], to provide additional or optimized functionality. +// +// [testing/fstest.TestFS] may be used to test implementations of an FS for +// correctness. type FS interface { // Open opens the named file. // -- 2.48.1