@@ -138,7 +138,7 @@ func makeTypeCheckFunction(t *testing.T, exceptions []typePath, startType reflec
138138func TestBlockFields (t * testing.T ) {
139139 partitiontest .PartitionTest (t )
140140
141- blockType := reflect .TypeOf (bookkeeping.Block {})
141+ typeToCheck := reflect .TypeOf (bookkeeping.Block {})
142142
143143 // These exceptions are for pre-existing usages of string. Only add to this list if you really need to use string.
144144 exceptions := []typePath {
@@ -160,13 +160,13 @@ func TestBlockFields(t *testing.T) {
160160
161161 seen := make (map [reflect.Type ]bool )
162162
163- checkReferencedTypes (seen , nil , []reflect.Type {blockType }, makeTypeCheckFunction (t , exceptions , blockType ))
163+ checkReferencedTypes (seen , nil , []reflect.Type {typeToCheck }, makeTypeCheckFunction (t , exceptions , typeToCheck ))
164164}
165165
166166func TestAccountDataFields (t * testing.T ) {
167167 partitiontest .PartitionTest (t )
168168
169- blockType := reflect .TypeOf (basics.AccountData {})
169+ typeToCheck := reflect .TypeOf (basics.AccountData {})
170170
171171 // These exceptions are for pre-existing usages of string. Only add to this list if you really need to use string.
172172 exceptions := []typePath {
@@ -181,5 +181,5 @@ func TestAccountDataFields(t *testing.T) {
181181
182182 seen := make (map [reflect.Type ]bool )
183183
184- checkReferencedTypes (seen , nil , []reflect.Type {blockType }, makeTypeCheckFunction (t , exceptions , blockType ))
184+ checkReferencedTypes (seen , nil , []reflect.Type {typeToCheck }, makeTypeCheckFunction (t , exceptions , typeToCheck ))
185185}
0 commit comments