mirror of https://github.com/golang/go.git
internal/completion: default to regular completion for f.Fuzz without f.Add
Change-Id: I7a05dba3f4a68c2075ebdf078e9e0ee6cfd97f28 Reviewed-on: https://go-review.googlesource.com/c/tools/+/393019 Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Peter Weinberger <pjw@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
6799a7ae92
commit
77aa08bb15
|
|
@ -100,7 +100,9 @@ Loop:
|
|||
}
|
||||
ast.Inspect(n, f)
|
||||
if add == nil {
|
||||
return true
|
||||
// looks like f.Fuzz without a preceding f.Add.
|
||||
// let the regular completion handle it.
|
||||
return false
|
||||
}
|
||||
|
||||
lbl := "Fuzz(func(t *testing.T"
|
||||
|
|
|
|||
Loading…
Reference in New Issue