@@ -37,7 +37,7 @@ func TestObjectAttribute(t *testing.T) {
3737 "s" : basetypes.StringType {},
3838 },
3939 }
40- shimmed := & attrSchema { "key" , pfutils .FromAttrLike (objectAttr )}
40+ shimmed := newAttrSchema ( "key" , pfutils .FromAttrLike (objectAttr ))
4141 assertIsObjectType (t , shimmed )
4242 s := shimmed .Elem ().(shim.Resource ).Schema ().Get ("s" )
4343 assert .Equal (t , shim .TypeString , s .Type ())
@@ -57,7 +57,7 @@ func TestSingleNestedBlock(t *testing.T) {
5757 b := schema.SingleNestedBlock {
5858 Attributes : simpleObjectAttributes (),
5959 }
60- shimmed := & blockSchema { "key" , pfutils .FromResourceBlock (b )}
60+ shimmed := newBlockSchema ( "key" , pfutils .FromResourceBlock (b ))
6161 assertIsObjectType (t , shimmed )
6262 assert .Equal (t , "obj[c=str,co=str,desc=str,o=str,r=str]" , schemaLogicalType (shimmed ).String ())
6363 r , ok := shimmed .Elem ().(shim.Resource )
@@ -72,7 +72,7 @@ func TestListNestedBlock(t *testing.T) {
7272 Attributes : simpleObjectAttributes (),
7373 },
7474 }
75- shimmed := & blockSchema { "key" , pfutils .FromResourceBlock (b )}
75+ shimmed := newBlockSchema ( "key" , pfutils .FromResourceBlock (b ))
7676 assert .Equal (t , "list[obj[c=str,co=str,desc=str,o=str,r=str]]" , schemaLogicalType (shimmed ).String ())
7777 r , ok := shimmed .Elem ().(shim.Resource )
7878 require .True (t , ok , "List-nested TF blocks should be represented as Elem() shim.Resource" )
@@ -86,7 +86,7 @@ func TestSetNestedBlock(t *testing.T) {
8686 Attributes : simpleObjectAttributes (),
8787 },
8888 }
89- shimmed := & blockSchema { "key" , pfutils .FromResourceBlock (b )}
89+ shimmed := newBlockSchema ( "key" , pfutils .FromResourceBlock (b ))
9090 assert .Equal (t , "set[obj[c=str,co=str,desc=str,o=str,r=str]]" , schemaLogicalType (shimmed ).String ())
9191 r , ok := shimmed .Elem ().(shim.Resource )
9292 require .True (t , ok , "Set-nested TF blocks should be represented as Elem() shim.Resource" )
0 commit comments