]> Cypherpunks repositories - gostls13.git/commit
testing/fstest: test that ReadDirFile on a non-dir fails
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 25 Feb 2021 17:44:35 +0000 (09:44 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 11 Mar 2021 18:25:41 +0000 (18:25 +0000)
commit1853411d8376570295711f9084d494d458822578
tree8c1af2c5e28d544e7b7b1810ce98046bdd83a447
parentbbf79793bdeda04d520377406024d7bb66aa62dc
testing/fstest: test that ReadDirFile on a non-dir fails

ReadDirFile implementations should return an error for non-directories.

Change-Id: I99888562cb6cf829017904ae8c1e8887a416c4cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/296391
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>
src/testing/fstest/testfs.go