mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-23 15:37:01 +00:00
test: Update fuzz tests to use the built-in infrastructure
Go 1.18 supports fuzzing natively, so this patch migrates our fuzzing tests to make use of it.
This commit is contained in:
@@ -65,13 +65,11 @@ improvements on the main code paths.
|
||||
## Fuzz tests
|
||||
|
||||
Some Go packages also have instrumentation to run fuzz testing against them,
|
||||
with the [go-fuzz](https://github.com/dvyukov/go-fuzz) tool.
|
||||
using the [Go native fuzzing support](https://go.dev/security/fuzz/).
|
||||
|
||||
This is critical for packages that handle sensitive user input, such as
|
||||
authentication encoding, aliases files, or username normalization.
|
||||
|
||||
They are implemented by a `fuzz.go` file within their respective Go packages.
|
||||
|
||||
|
||||
## Command-line tool tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user