15 lines
211 B
Go
15 lines
211 B
Go
|
//go:build gofuzz
|
||
|
// +build gofuzz
|
||
|
|
||
|
package netmap
|
||
|
|
||
|
func DoFuzzPlacementPolicyDecode(data []byte) int {
|
||
|
p := string(data)
|
||
|
if p == "" {
|
||
|
return 0
|
||
|
}
|
||
|
var pp PlacementPolicy
|
||
|
_ = pp.DecodeString(p)
|
||
|
return 1
|
||
|
}
|