account fuzz test

pull/73/head
v2ray 2016-01-22 17:55:03 +01:00
parent c61cd2cf8f
commit 9ec238d161
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// +build gofuzz
package command
func Fuzz(data []byte) int {
cmd := new(SwitchAccount)
if err := cmd.Unmarshal(data); err != nil {
return 0
}
return 1
}