diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-01-21 22:47:18 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-01-25 23:52:43 +0000 |
commit | a51921fa5b1398227efd61ceb3991313f037d7fa (patch) | |
tree | a9fc3e140706cb2138d3a0a1dd21b91c2803fa31 /doc | |
parent | e6b6d107f7157bb515564f628e5b9b455e295db3 (diff) | |
download | go-a51921fa5b1398227efd61ceb3991313f037d7fa.tar.gz go-a51921fa5b1398227efd61ceb3991313f037d7fa.zip |
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 <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.16.html | 19 |
1 files changed, 19 insertions, 0 deletions
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) { </dd> </dl><!-- syscall --> +<dl id="testing/iotest"><dt><a href="/pkg/testing/iotest/">testing/iotest</a></dt> + <dd> + <p><!-- CL 199501 --> + The new + <a href="/pkg/testing/iotest/#ErrReader"><code>ErrReader</code></a> + function returns an + <a href="/pkg/io/#Reader"><code>io.Reader</code></a> that always + returns an error. + </p> + + <p><!-- CL 243909 --> + The new + <a href="/pkg/testing/iotest/#TestReader"><code>TestReader</code></a> + function tests that an <a href="/pkg/io/#Reader"><code>io.Reader</code></a> + behaves correctly. + </p> + </dd> +</dl><!-- testing/iotest --> + <dl id="text/template"><dt><a href="/pkg/text/template/">text/template</a></dt> <dd> <p><!-- CL 254257, golang.org/issue/29770 --> |