go/src/testing/fstest
Josh Bleecher Snyder 213e157d3a testing/fstest: allow specifying file for "." in MapFS
Prior to this commit, specifying a file for "." in MapFS
created an invalid fs.FS and caused infinite recursion in fs.WalkDir.

Fixes #46776

Change-Id: Ia9e4ae1125355a74dba9ee6b36451b7fda75a862
Reviewed-on: https://go-review.googlesource.com/c/go/+/328409
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-08-16 22:27:47 +00:00
..
mapfs.go testing/fstest: allow specifying file for "." in MapFS 2021-08-16 22:27:47 +00:00
mapfs_test.go testing/fstest: allow specifying file for "." in MapFS 2021-08-16 22:27:47 +00:00
testfs.go io/fs: document that caller can modify slice returned by ReadFile 2021-04-21 16:46:52 +00:00
testfs_test.go testing/fstest: treat dash specially when building glob 2021-02-25 15:23:02 +00:00