1
0
mirror of https://github.com/golang/go synced 2024-11-17 17:04:47 -07:00

internal/fuzz: use the built-in min function

Change-Id: I26be9a9faa27c6c03cf8b9dec5908d8617d61312
Reviewed-on: https://go-review.googlesource.com/c/go/+/518276
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
cui fliter 2023-08-11 11:00:44 +08:00 committed by Gopher Robot
parent 41c71d48a1
commit d788b27cd4

View File

@ -44,13 +44,6 @@ func (m *mutator) chooseLen(n int) int {
} }
} }
func min(a, b int) int {
if a < b {
return a
}
return b
}
// mutate performs several mutations on the provided values. // mutate performs several mutations on the provided values.
func (m *mutator) mutate(vals []any, maxBytes int) { func (m *mutator) mutate(vals []any, maxBytes int) {
// TODO(katiehockman): pull some of these functions into helper methods and // TODO(katiehockman): pull some of these functions into helper methods and