An open API service indexing awesome lists of open source software.

https://github.com/simonrichardson/shrink

Shrink test cases using go stdlib quick.Check
https://github.com/simonrichardson/shrink

fuzzing quickcheck shrink testing

Last synced: about 2 months ago
JSON representation

Shrink test cases using go stdlib quick.Check

Awesome Lists containing this project

README

        

# shrink

Shrink is a drop in replacement for the stdlib `quick.Check`, but with the
additional benefits of shrinking the input arguments on failure.

## Example

```go
func TestDivide(t *testing.T) {
fn := func(x int) bool {
return (x % 1000) < 10
}
if err := shrink.Check(fn, nil); err != nil {
t.Error(err)
}
}
```