]> Cypherpunks.ru repositories - gostls13.git/commit
io/fs: clean up test helper functions
authorTobias Klauser <tklauser@distanz.ch>
Thu, 17 Nov 2022 16:38:20 +0000 (17:38 +0100)
committerGopher Robot <gobot@golang.org>
Fri, 18 Nov 2022 15:21:18 +0000 (15:21 +0000)
commitc13ce2985c35b4c6a4b65779c7b30648c6a6e3b8
tree528adeb001c47dd15a589324b364d552ffdb3ac3
parent1ed636dc97556e12fd9788d13de6de2f06aa3868
io/fs: clean up test helper functions

Inline the only use of checkMarks which also allows to drop the
always-true report argument. This also ensures the correct line gets
reported in case of an error.

Also remove the unused markTree function and drop the unused testing.T
argument from makeTree.

Change-Id: I4033d3e5ecd929d08ce03c563aa99444e102d931
Reviewed-on: https://go-review.googlesource.com/c/go/+/451615
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/io/fs/walk_test.go