(f *testing.F)
| 11 | ) |
| 12 | |
| 13 | func FuzzParseTemplate(f *testing.F) { |
| 14 | f.Fuzz(func(t *testing.T, data []byte) { |
| 15 | _, diags := hclsyntax.ParseTemplate(data, "<fuzz-tmpl>", hcl.Pos{Line: 1, Column: 1}) |
| 16 | |
| 17 | if diags.HasErrors() { |
| 18 | t.Logf("Error when parsing template %v", data) |
| 19 | for _, diag := range diags { |
| 20 | t.Logf("- %s", diag.Error()) |
| 21 | } |
| 22 | } |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | func FuzzParseTraversalAbs(f *testing.F) { |
| 27 | f.Fuzz(func(t *testing.T, data []byte) { |
nothing calls this directly
no test coverage detected