]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: support minimization of strings, integers, and floats
authorRoland Shoemaker <roland@golang.org>
Tue, 18 May 2021 03:14:15 +0000 (20:14 -0700)
committerRoland Shoemaker <roland@golang.org>
Thu, 27 May 2021 02:15:49 +0000 (02:15 +0000)
commita573cbfa6c84c108d79330d062c345dc8d38dbfd
treecff1b89a558dcc987627325f5accab245bf7b0f5
parent5fcd18bc9bd89bad5270434f99d40e820affbd82
[dev.fuzz] internal/fuzz: support minimization of strings, integers, and floats

Adds support for minimizing strings using the same logic as byte slices
as well as minimizing both signed and unsigned integers and floats using
extremely basic logic. A more complex approach is probably warranted in
the future, but for now this should be _good enough_.

Change-Id: Ibc6c3d6ae82685998f571aa2c1ecea2f85c2708b
Reviewed-on: https://go-review.googlesource.com/c/go/+/320669
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>
src/internal/fuzz/minimize.go [new file with mode: 0644]
src/internal/fuzz/minimize_test.go [new file with mode: 0644]
src/internal/fuzz/worker.go