(f *testing.F)
| 37 | } |
| 38 | |
| 39 | func FuzzParseExpression(f *testing.F) { |
| 40 | f.Fuzz(func(t *testing.T, data []byte) { |
| 41 | _, diags := hclsyntax.ParseExpression(data, "<fuzz-expr>", hcl.Pos{Line: 1, Column: 1}) |
| 42 | |
| 43 | if diags.HasErrors() { |
| 44 | t.Logf("Error when parsing expression %v", data) |
| 45 | for _, diag := range diags { |
| 46 | t.Logf("- %s", diag.Error()) |
| 47 | } |
| 48 | } |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | func FuzzParseConfig(f *testing.F) { |
| 53 | f.Fuzz(func(t *testing.T, data []byte) { |
nothing calls this directly
no test coverage detected