(f *testing.F)
| 50 | } |
| 51 | |
| 52 | func FuzzParseConfig(f *testing.F) { |
| 53 | f.Fuzz(func(t *testing.T, data []byte) { |
| 54 | _, diags := hclsyntax.ParseConfig(data, "<fuzz-conf>", hcl.Pos{Line: 1, Column: 1}) |
| 55 | |
| 56 | if diags.HasErrors() { |
| 57 | t.Logf("Error when parsing config %v", data) |
| 58 | for _, diag := range diags { |
| 59 | t.Logf("- %s", diag.Error()) |
| 60 | } |
| 61 | } |
| 62 | }) |
| 63 | } |
nothing calls this directly
no test coverage detected