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

https://github.com/peterhellberg/fuzz

Randomized testing for my Go packages using go-fuzz
https://github.com/peterhellberg/fuzz

Last synced: 12 months ago
JSON representation

Randomized testing for my Go packages using go-fuzz

Awesome Lists containing this project

README

          

# fuzz

Randomized testing for my Go packages using [go-fuzz](https://github.com/dvyukov/go-fuzz)

## Example

```go
// +build gofuzz

package duration

import "github.com/peterhellberg/duration"

func Fuzz(data []byte) int {
if _, err := duration.Parse(string(data)); err == nil {
return 1
}

return -1
}
```