commit | ff6f2051d9151a03d012c3020c62f3574e1b2d1b | [log] [tgz] |
---|---|---|
author | Roland Shoemaker <roland@golang.org> | Thu Jun 17 11:54:10 2021 -0700 |
committer | Roland Shoemaker <roland@golang.org> | Tue Jun 22 04:10:24 2021 +0000 |
tree | 052fbdf0ca192608063bff8b65a42c7469b01e5d | |
parent | 413c125da38990720744c0d98ab65c0d5b1602da [diff] |
[dev.fuzz] internal/fuzz: refactor byte slice mutators Move all byte slice mutators into their own functions and randomly pick from a slice, rather than using a large switch statement. Additionally tests are added for each mutator which, lightly, test that they are working as intended. Other type mutators are left as-is for a similar refactor in the future. Change-Id: Ifd4447b885885b3cc068748f33cc5d1ea25af62f Reviewed-on: https://go-review.googlesource.com/c/go/+/329089 Trust: Roland Shoemaker <roland@golang.org> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.html.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.