]> Cypherpunks repositories - gostls13.git/commit
testing/iotest: add TestReader to test readers
authorRuss Cox <rsc@golang.org>
Sun, 19 Jul 2020 02:26:00 +0000 (22:26 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 02:32:44 +0000 (02:32 +0000)
commit9ad090c5fea60c9925b7eb30155ce01961c3537f
treef73c7f6c7cbcf57c1078d554257e7c02fb457cca
parent7bb721b9384bdd196befeaed593b185f7f2a5589
testing/iotest: add TestReader to test readers

There are many reader behaviors that are subtle and
worth testing, and it's nice to have one complete tester
instead of many incomplete ones.

For #41190, which will use this as part of a larger
file system implementation tester.

Change-Id: Ib4cc7fae94b0d9b45dfacadc52baa77ad3761322
Reviewed-on: https://go-review.googlesource.com/c/go/+/243909
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/testing/iotest/reader.go
src/testing/iotest/reader_test.go