forked from TrueCloudLab/frostfs-sdk-go
18 lines
263 B
Go
18 lines
263 B
Go
|
//go:build gofuzz
|
||
|
// +build gofuzz
|
||
|
|
||
|
package netmap
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func FuzzDecodeString(f *testing.F) {
|
||
|
for _, pp := range validPlacementPolicy {
|
||
|
f.Add([]byte(pp))
|
||
|
}
|
||
|
f.Fuzz(func(t *testing.T, data []byte) {
|
||
|
DoFuzzPlacementPolicyDecode(data)
|
||
|
})
|
||
|
}
|