(t *testing.T)
| 450 | } |
| 451 | |
| 452 | func TestTemplateExprWrappedGracefulValue(t *testing.T) { |
| 453 | // we don't care about diags since we know it's invalid config |
| 454 | expr, _ := ParseTemplate([]byte(`${provider::}`), "", hcl.Pos{Line: 1, Column: 1, Byte: 0}) |
| 455 | |
| 456 | got, _ := expr.Value(nil) // this should not panic |
| 457 | |
| 458 | if !got.RawEquals(cty.DynamicVal) { |
| 459 | t.Errorf("wrong result\ngot: %#v\nwant: %#v", got, cty.DynamicVal) |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | func TestTemplateExprIsStringLiteral(t *testing.T) { |
| 464 | tests := map[string]bool{ |
nothing calls this directly
no test coverage detected