From a51921fa5b1398227efd61ceb3991313f037d7fa Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 21 Jan 2021 22:47:18 -0800 Subject: [PATCH] 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 --- doc/go1.16.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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

-- 2.50.0