Skip to content

Commit

Permalink
Fix existing for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Feb 19, 2024
1 parent 977c328 commit a87d049
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions decoder/expr_any_ref_origins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,11 @@ func TestCollectRefOrigins_exprAny_forExpr_hcl(t *testing.T) {
End: hcl.Pos{Line: 1, Column: 33, Byte: 32},
},
Constraints: reference.OriginConstraints{
{OfType: cty.List(cty.String)},
{OfType: cty.List(cty.DynamicPseudoType)},
{OfType: cty.Set(cty.DynamicPseudoType)},
{OfType: cty.EmptyTuple},
{OfType: cty.Map(cty.DynamicPseudoType)},
{OfType: cty.EmptyObject},
},
},
reference.LocalOrigin{
Expand Down Expand Up @@ -1090,7 +1094,11 @@ func TestCollectRefOrigins_exprAny_forExpr_hcl(t *testing.T) {
End: hcl.Pos{Line: 1, Column: 33, Byte: 32},
},
Constraints: reference.OriginConstraints{
{OfType: cty.Set(cty.String)},
{OfType: cty.List(cty.DynamicPseudoType)},
{OfType: cty.Set(cty.DynamicPseudoType)},
{OfType: cty.EmptyTuple},
{OfType: cty.Map(cty.DynamicPseudoType)},
{OfType: cty.EmptyObject},
},
},
reference.LocalOrigin{
Expand Down Expand Up @@ -1131,7 +1139,11 @@ func TestCollectRefOrigins_exprAny_forExpr_hcl(t *testing.T) {
End: hcl.Pos{Line: 1, Column: 33, Byte: 32},
},
Constraints: reference.OriginConstraints{
{OfType: cty.List(cty.DynamicPseudoType)},
{OfType: cty.Set(cty.DynamicPseudoType)},
{OfType: cty.EmptyTuple},
{OfType: cty.Map(cty.DynamicPseudoType)},
{OfType: cty.EmptyObject},
},
},
reference.LocalOrigin{
Expand Down Expand Up @@ -1172,7 +1184,11 @@ func TestCollectRefOrigins_exprAny_forExpr_hcl(t *testing.T) {
End: hcl.Pos{Line: 1, Column: 33, Byte: 32},
},
Constraints: reference.OriginConstraints{
{OfType: cty.Map(cty.String)},
{OfType: cty.List(cty.DynamicPseudoType)},
{OfType: cty.Set(cty.DynamicPseudoType)},
{OfType: cty.EmptyTuple},
{OfType: cty.Map(cty.DynamicPseudoType)},
{OfType: cty.EmptyObject},
},
},
reference.LocalOrigin{
Expand Down Expand Up @@ -1226,6 +1242,10 @@ func TestCollectRefOrigins_exprAny_forExpr_hcl(t *testing.T) {
End: hcl.Pos{Line: 1, Column: 33, Byte: 32},
},
Constraints: reference.OriginConstraints{
{OfType: cty.List(cty.DynamicPseudoType)},
{OfType: cty.Set(cty.DynamicPseudoType)},
{OfType: cty.EmptyTuple},
{OfType: cty.Map(cty.DynamicPseudoType)},
{OfType: cty.EmptyObject},
},
},
Expand Down

0 comments on commit a87d049

Please sign in to comment.