summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
Diffstat (limited to 'json')
-rw-r--r--json/fuzz/fuzz_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/json/fuzz/fuzz_test.go b/json/fuzz/fuzz_test.go
index bcaa4f4..f77c96b 100644
--- a/json/fuzz/fuzz_test.go
+++ b/json/fuzz/fuzz_test.go
@@ -7,14 +7,14 @@ import (
)
func FuzzParse(f *testing.F) {
-f.Fuzz(func(t *testing.T, data []byte) {
- _, diags := json.Parse(data, "<fuzz-conf>")
+ f.Fuzz(func(t *testing.T, data []byte) {
+ _, diags := json.Parse(data, "<fuzz-conf>")
-if diags.HasErrors() {
+ if diags.HasErrors() {
t.Logf("Error when parsing JSON %v", data)
for _, diag := range diags {
t.Logf("- %s", diag.Error())
}
}
-})
+ })
}