mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
24 lines
548 B
Markdown
24 lines
548 B
Markdown
# fuzz
|
|
|
|
Fuzzing for various packages in Tendermint using the fuzzing infrastructure included in
|
|
Go 1.18.
|
|
|
|
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.
|