You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//go:build gofuzz |
|
// +build gofuzz |
|
|
|
package jx |
|
|
|
import ( |
|
"encoding/json" |
|
"fmt" |
|
) |
|
|
|
func Fuzz(data []byte) int { |
|
got := Valid(data) |
|
exp := json.Valid(data) |
|
if !exp && got { |
|
fmt.Printf("jx: %v\nencoding/json:%v\n", got, exp) |
|
panic("mismatch") |
|
} |
|
return 1 |
|
}
|
|
|