mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: fix SetIter test
Missed one review comment in CL 356049 Change-Id: I05be585d15e77afc1aa57b737cdc8ba7204bab98 Reviewed-on: https://go-review.googlesource.com/c/go/+/356051 Trust: Keith Randall <khr@golang.org> Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
81484cf626
commit
1cbec68512
1 changed files with 2 additions and 2 deletions
|
|
@ -7635,7 +7635,7 @@ func TestSetIter(t *testing.T) {
|
|||
k.SetIterKey(i)
|
||||
})
|
||||
shouldPanic("Value.SetIterValue called before Next", func() {
|
||||
k.SetIterValue(i)
|
||||
v.SetIterValue(i)
|
||||
})
|
||||
data2 := map[string]int{}
|
||||
for i.Next() {
|
||||
|
|
@ -7650,7 +7650,7 @@ func TestSetIter(t *testing.T) {
|
|||
k.SetIterKey(i)
|
||||
})
|
||||
shouldPanic("Value.SetIterValue called on exhausted iterator", func() {
|
||||
k.SetIterValue(i)
|
||||
v.SetIterValue(i)
|
||||
})
|
||||
|
||||
i.Reset(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue