Files
tendermint/test/fuzz/README.md
2022-04-19 11:49:51 -07:00

23 lines
555 B
Markdown

# fuzz
Fuzzing for various packages in Tendermint using [go-fuzz](https://github.com/dvyukov/go-fuzz) library.
Inputs:
- mempool `CheckTx` (using kvstore in-process ABCI app)
- p2p `SecretConnection#Read` and `SecretConnection#Write`
- rpc jsonrpc server
## Running
The fuzz tests are in native Go fuzzing format. Use the `go`
tool to run them:
```sh
go test -fuzz Mempool ./tests
go test -fuzz P2PSecretConnection ./tests
go test -fuzz RPCJSONRPCServer ./tests
```
See [the Go Fuzzing introduction](https://go.dev/doc/fuzz/) for more information.