(t *testing.T)
| 439 | } |
| 440 | |
| 441 | func TestTemplateExprGracefulValue(t *testing.T) { |
| 442 | // we don't care about diags since we know it's invalid config |
| 443 | expr, _ := ParseTemplate([]byte(`prefix${provider::}`), "", hcl.Pos{Line: 1, Column: 1, Byte: 0}) |
| 444 | |
| 445 | got, _ := expr.Value(nil) // this should not panic |
| 446 | |
| 447 | if !got.RawEquals(cty.UnknownVal(cty.String).RefineNotNull()) { |
| 448 | t.Errorf("wrong result\ngot: %#v\nwant: %#v", got, cty.UnknownVal(cty.String).RefineNotNull()) |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | func TestTemplateExprWrappedGracefulValue(t *testing.T) { |
| 453 | // we don't care about diags since we know it's invalid config |
nothing calls this directly
no test coverage detected