From: Ian Lance Taylor Date: Fri, 22 Jan 2021 06:47:18 +0000 (-0800) Subject: doc/go1.16: mention new testing/iotest functions X-Git-Tag: go1.16rc1~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a51921fa5b;p=gostls13.git doc/go1.16: mention new testing/iotest functions For #38781 For #40700 For #41190 Change-Id: I72f1055e51edb517041d3861640734ba6ef5f342 Reviewed-on: https://go-review.googlesource.com/c/go/+/285673 Trust: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/doc/go1.16.html b/doc/go1.16.html index 37a2160944..1a88568acb 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -1071,6 +1071,25 @@ func TestFoo(t *testing.T) { +
testing/iotest
+
+

+ The new + ErrReader + function returns an + io.Reader that always + returns an error. +

+ +

+ The new + TestReader + function tests that an io.Reader + behaves correctly. +

+
+
+
text/template