From 5f4001a526a84a13e2df6dd586054ceff9bd521f Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Wed, 12 Feb 2025 10:36:51 -0500 Subject: [PATCH] chore: Update golangci-lint linters and apply fixes --- .golangci.yml | 8 ++--- datasource/schema/bool_attribute_test.go | 24 ------------- datasource/schema/dynamic_attribute_test.go | 24 ------------- datasource/schema/float32_attribute_test.go | 24 ------------- datasource/schema/float64_attribute_test.go | 24 ------------- datasource/schema/int32_attribute_test.go | 24 ------------- datasource/schema/int64_attribute_test.go | 24 ------------- datasource/schema/list_attribute_test.go | 26 -------------- .../schema/list_nested_attribute_test.go | 28 --------------- datasource/schema/list_nested_block_test.go | 18 ---------- datasource/schema/map_attribute_test.go | 26 -------------- .../schema/map_nested_attribute_test.go | 28 --------------- .../schema/nested_attribute_object_test.go | 10 ------ datasource/schema/nested_block_object_test.go | 12 ------- datasource/schema/number_attribute_test.go | 24 ------------- datasource/schema/object_attribute_test.go | 26 -------------- datasource/schema/schema_test.go | 26 -------------- datasource/schema/set_attribute_test.go | 26 -------------- .../schema/set_nested_attribute_test.go | 28 --------------- datasource/schema/set_nested_block_test.go | 18 ---------- .../schema/single_nested_attribute_test.go | 26 -------------- datasource/schema/single_nested_block_test.go | 16 --------- datasource/schema/string_attribute_test.go | 24 ------------- diag/diagnostics_test.go | 13 ------- diag/error_diagnostic_test.go | 1 - diag/warning_diagnostic_test.go | 1 - ephemeral/schema/bool_attribute_test.go | 24 ------------- ephemeral/schema/dynamic_attribute_test.go | 24 ------------- ephemeral/schema/float32_attribute_test.go | 24 ------------- ephemeral/schema/float64_attribute_test.go | 24 ------------- ephemeral/schema/int32_attribute_test.go | 24 ------------- ephemeral/schema/int64_attribute_test.go | 24 ------------- ephemeral/schema/list_attribute_test.go | 26 -------------- .../schema/list_nested_attribute_test.go | 28 --------------- ephemeral/schema/list_nested_block_test.go | 18 ---------- ephemeral/schema/map_attribute_test.go | 26 -------------- ephemeral/schema/map_nested_attribute_test.go | 28 --------------- .../schema/nested_attribute_object_test.go | 10 ------ ephemeral/schema/nested_block_object_test.go | 12 ------- ephemeral/schema/number_attribute_test.go | 24 ------------- ephemeral/schema/object_attribute_test.go | 26 -------------- ephemeral/schema/schema_test.go | 26 -------------- ephemeral/schema/set_attribute_test.go | 26 -------------- ephemeral/schema/set_nested_attribute_test.go | 28 --------------- ephemeral/schema/set_nested_block_test.go | 18 ---------- .../schema/single_nested_attribute_test.go | 26 -------------- ephemeral/schema/single_nested_block_test.go | 16 --------- ephemeral/schema/string_attribute_test.go | 24 ------------- function/arguments_data_test.go | 6 ---- function/bool_parameter_test.go | 16 --------- function/bool_return_test.go | 2 -- function/definition_test.go | 2 -- function/dynamic_parameter_test.go | 16 --------- function/dynamic_return_test.go | 2 -- function/float32_parameter_test.go | 16 --------- function/float32_return_test.go | 2 -- function/float64_parameter_test.go | 16 --------- function/float64_return_test.go | 2 -- function/func_error_test.go | 4 --- function/int32_parameter_test.go | 16 --------- function/int32_return_test.go | 2 -- function/int64_parameter_test.go | 16 --------- function/int64_return_test.go | 2 -- function/list_parameter_test.go | 16 --------- function/list_return_test.go | 4 --- function/map_parameter_test.go | 16 --------- function/map_return_test.go | 4 --- function/number_parameter_test.go | 16 --------- function/number_return_test.go | 2 -- function/object_parameter_test.go | 16 --------- function/object_return_test.go | 4 --- function/result_data_test.go | 2 -- function/set_parameter_test.go | 16 --------- function/set_return_test.go | 4 --- function/string_parameter_test.go | 16 --------- function/string_return_test.go | 2 -- .../fromproto5/applyresourcechange_test.go | 2 -- internal/fromproto5/arguments_data_test.go | 4 --- internal/fromproto5/callfunction_test.go | 2 -- .../fromproto5/closeephemeralresource_test.go | 2 -- internal/fromproto5/config_test.go | 2 -- internal/fromproto5/configureprovider_test.go | 2 -- internal/fromproto5/dynamic_value_test.go | 2 -- .../fromproto5/ephemeral_result_data_test.go | 2 -- internal/fromproto5/getfunctions_test.go | 2 -- internal/fromproto5/getmetadata_test.go | 2 -- internal/fromproto5/getproviderschema_test.go | 2 -- .../fromproto5/importresourcestate_test.go | 2 -- internal/fromproto5/moveresourcestate_test.go | 2 -- .../fromproto5/openephemeralresource_test.go | 2 -- internal/fromproto5/plan_test.go | 2 -- .../fromproto5/planresourcechange_test.go | 2 -- .../fromproto5/prepareproviderconfig_test.go | 2 -- internal/fromproto5/providermeta_test.go | 2 -- internal/fromproto5/readdatasource_test.go | 2 -- internal/fromproto5/readresource_test.go | 2 -- .../fromproto5/renewephemeralresource_test.go | 2 -- internal/fromproto5/state_test.go | 2 -- .../fromproto5/upgraderesourcestate_test.go | 2 -- .../validatedatasourceconfig_test.go | 2 -- .../validateephemeralresourceconfig_test.go | 2 -- .../validateresourcetypeconfig_test.go | 2 -- .../fromproto6/applyresourcechange_test.go | 2 -- internal/fromproto6/arguments_data_test.go | 4 --- internal/fromproto6/callfunction_test.go | 2 -- .../fromproto6/closeephemeralresource_test.go | 2 -- internal/fromproto6/config_test.go | 2 -- internal/fromproto6/configureprovider_test.go | 2 -- internal/fromproto6/dynamic_value_test.go | 2 -- .../fromproto6/ephemeral_result_data_test.go | 2 -- internal/fromproto6/getfunctions_test.go | 2 -- internal/fromproto6/getmetadata_test.go | 2 -- internal/fromproto6/getproviderschema_test.go | 2 -- .../fromproto6/importresourcestate_test.go | 2 -- internal/fromproto6/moveresourcestate_test.go | 2 -- .../fromproto6/openephemeralresource_test.go | 2 -- internal/fromproto6/plan_test.go | 2 -- .../fromproto6/planresourcechange_test.go | 2 -- internal/fromproto6/providermeta_test.go | 2 -- internal/fromproto6/readdatasource_test.go | 2 -- internal/fromproto6/readresource_test.go | 2 -- .../fromproto6/renewephemeralresource_test.go | 2 -- internal/fromproto6/state_test.go | 2 -- .../fromproto6/upgraderesourcestate_test.go | 2 -- .../validatedatasourceconfig_test.go | 2 -- .../validateephemeralresourceconfig_test.go | 2 -- .../fromproto6/validateproviderconfig_test.go | 2 -- .../fromproto6/validateresourceconfig_test.go | 2 -- .../fromtftypes/attribute_path_step_test.go | 2 -- internal/fromtftypes/attribute_path_test.go | 2 -- internal/fromtftypes/value_test.go | 2 -- .../attribute_name_validation_test.go | 6 ---- internal/fwschema/schema_test.go | 6 ---- internal/fwschemadata/data_default_test.go | 2 -- .../fwschemadata/data_get_at_path_test.go | 1 - internal/fwschemadata/data_get_test.go | 1 - .../data_nullify_collection_blocks_test.go | 2 -- .../fwschemadata/data_path_exists_test.go | 1 - .../fwschemadata/data_path_matches_test.go | 2 -- .../data_reify_null_collection_blocks_test.go | 2 -- .../fwschemadata/data_set_at_path_test.go | 1 - internal/fwschemadata/data_set_test.go | 1 - .../data_valid_path_expression_test.go | 2 -- internal/fwschemadata/data_value_test.go | 1 - internal/fwschemadata/tftypes_value_test.go | 2 -- .../value_semantic_equality_bool_test.go | 2 -- .../value_semantic_equality_dynamic_test.go | 2 -- .../value_semantic_equality_float32_test.go | 2 -- .../value_semantic_equality_float64_test.go | 2 -- .../value_semantic_equality_int32_test.go | 2 -- .../value_semantic_equality_int64_test.go | 2 -- .../value_semantic_equality_list_test.go | 2 -- .../value_semantic_equality_map_test.go | 2 -- .../value_semantic_equality_number_test.go | 2 -- .../value_semantic_equality_object_test.go | 2 -- .../value_semantic_equality_set_test.go | 2 -- .../value_semantic_equality_string_test.go | 2 -- .../value_semantic_equality_test.go | 2 -- .../attribute_plan_modification_test.go | 27 --------------- .../fwserver/attribute_validation_test.go | 27 --------------- .../fwserver/block_plan_modification_test.go | 9 ----- internal/fwserver/block_validation_test.go | 9 ----- .../fwserver/schema_plan_modification_test.go | 1 - .../fwserver/schema_semantic_equality_test.go | 2 -- internal/fwserver/schema_validation_test.go | 1 - .../server_applyresourcechange_test.go | 2 -- internal/fwserver/server_callfunction_test.go | 2 -- .../server_closeephemeralresource_test.go | 2 -- .../fwserver/server_configureprovider_test.go | 2 -- .../fwserver/server_createresource_test.go | 2 -- .../fwserver/server_deleteresource_test.go | 2 -- internal/fwserver/server_getfunctions_test.go | 2 -- internal/fwserver/server_getmetadata_test.go | 2 -- .../fwserver/server_getproviderschema_test.go | 2 -- .../server_importresourcestate_test.go | 2 -- .../fwserver/server_moveresourcestate_test.go | 2 -- .../server_openephemeralresource_test.go | 2 -- .../server_planresourcechange_test.go | 5 --- .../fwserver/server_readdatasource_test.go | 2 -- internal/fwserver/server_readresource_test.go | 2 -- .../server_renewephemeralresource_test.go | 2 -- .../fwserver/server_updateresource_test.go | 2 -- .../server_upgraderesourcestate_test.go | 2 -- .../server_validatedatasourceconfig_test.go | 2 -- ...er_validateephemeralresourceconfig_test.go | 2 -- .../server_validateproviderconfig_test.go | 2 -- .../server_validateresourceconfig_test.go | 2 -- ...missing_underlying_type_validation_test.go | 2 -- .../static_collection_validation_test.go | 1 - internal/privatestate/data_test.go | 14 -------- .../server_applyresourcechange_test.go | 2 -- .../proto5server/server_callfunction_test.go | 2 -- .../server_closeephemeralresource_test.go | 2 -- .../server_configureprovider_test.go | 2 -- .../proto5server/server_getfunctions_test.go | 2 -- .../proto5server/server_getmetadata_test.go | 2 -- .../server_getproviderschema_test.go | 2 -- .../server_importresourcestate_test.go | 2 -- .../server_moveresourcestate_test.go | 2 -- .../server_openephemeralresource_test.go | 2 -- .../server_planresourcechange_test.go | 2 -- .../server_prepareproviderconfig_test.go | 2 -- .../server_readdatasource_test.go | 2 -- .../proto5server/server_readresource_test.go | 2 -- .../server_renewephemeralresource_test.go | 2 -- .../server_upgraderesourcestate_test.go | 2 -- .../server_validatedatasourceconfig_test.go | 2 -- ...er_validateephemeralresourceconfig_test.go | 2 -- .../server_validateresourcetypeconfig_test.go | 2 -- .../server_applyresourcechange_test.go | 2 -- .../proto6server/server_callfunction_test.go | 2 -- .../server_closeephemeralresource_test.go | 2 -- .../server_configureprovider_test.go | 2 -- .../proto6server/server_getfunctions_test.go | 2 -- .../proto6server/server_getmetadata_test.go | 2 -- .../server_getproviderschema_test.go | 2 -- .../server_importresourcestate_test.go | 2 -- .../server_moveresourcestate_test.go | 2 -- .../server_openephemeralresource_test.go | 2 -- .../server_planresourcechange_test.go | 2 -- .../server_readdatasource_test.go | 2 -- .../proto6server/server_readresource_test.go | 2 -- .../server_renewephemeralresource_test.go | 2 -- .../server_upgraderesourcestate_test.go | 2 -- .../server_validatedataresourceconfig_test.go | 2 -- ...er_validateephemeralresourceconfig_test.go | 2 -- .../server_validateproviderconfig_test.go | 2 -- .../server_validateresourceconfig_test.go | 2 -- internal/reflect/build_value_test.go | 1 - internal/reflect/helpers_test.go | 3 -- internal/reflect/interfaces_test.go | 8 ----- internal/reflect/into_test.go | 2 -- internal/reflect/map_test.go | 1 - internal/reflect/number_test.go | 5 --- internal/reflect/outof_test.go | 2 -- internal/reflect/pointer_test.go | 1 - internal/reflect/primitive_test.go | 2 -- internal/reflect/slice_test.go | 1 - internal/reflect/struct_test.go | 4 --- internal/toproto5/applyresourcechange_test.go | 2 -- internal/toproto5/block_test.go | 1 - internal/toproto5/callfunction_test.go | 2 -- .../toproto5/closeephemeralresource_test.go | 2 -- internal/toproto5/config_test.go | 2 -- internal/toproto5/configureprovider_test.go | 2 -- internal/toproto5/datasourcemetadata_test.go | 2 -- internal/toproto5/diagnostics_test.go | 3 -- internal/toproto5/dynamic_value_test.go | 2 -- .../toproto5/ephemeral_result_data_test.go | 2 -- .../ephemeralresourcemetadata_test.go | 2 -- internal/toproto5/function_test.go | 10 ------ internal/toproto5/getfunctions_test.go | 2 -- internal/toproto5/getmetadata_test.go | 2 -- internal/toproto5/getproviderschema_test.go | 2 -- internal/toproto5/importedresource_test.go | 2 -- internal/toproto5/moveresourcestate_test.go | 2 -- .../toproto5/openephemeralresource_test.go | 2 -- internal/toproto5/planresourcechange_test.go | 2 -- .../toproto5/prepareproviderconfig_test.go | 2 -- internal/toproto5/readdatasource_test.go | 2 -- internal/toproto5/readresource_test.go | 2 -- .../toproto5/renewephemeralresource_test.go | 2 -- internal/toproto5/resourcemetadata_test.go | 2 -- internal/toproto5/schema_attribute_test.go | 1 - internal/toproto5/schema_test.go | 1 - internal/toproto5/server_capabilities_test.go | 2 -- internal/toproto5/state_test.go | 2 -- .../toproto5/upgraderesourcestate_test.go | 2 -- .../toproto5/validatedatasourceconfig_test.go | 2 -- .../validateephemeralresourceconfig_test.go | 2 -- .../validateresourcetypeconfig_test.go | 2 -- internal/toproto6/applyresourcechange_test.go | 2 -- internal/toproto6/block_test.go | 1 - internal/toproto6/callfunction_test.go | 2 -- .../toproto6/closeephemeralresource_test.go | 2 -- internal/toproto6/config_test.go | 2 -- internal/toproto6/configureprovider_test.go | 2 -- internal/toproto6/datasourcemetadata_test.go | 2 -- internal/toproto6/diagnostics_test.go | 3 -- internal/toproto6/dynamic_value_test.go | 2 -- .../toproto6/ephemeral_result_data_test.go | 2 -- .../ephemeralresourcemetadata_test.go | 2 -- internal/toproto6/function_test.go | 10 ------ internal/toproto6/getfunctions_test.go | 2 -- internal/toproto6/getmetadata_test.go | 2 -- internal/toproto6/getproviderschema_test.go | 2 -- internal/toproto6/importedresource_test.go | 2 -- internal/toproto6/moveresourcestate_test.go | 2 -- .../toproto6/openephemeralresource_test.go | 2 -- internal/toproto6/planresourcechange_test.go | 2 -- internal/toproto6/readdatasource_test.go | 2 -- internal/toproto6/readresource_test.go | 2 -- .../toproto6/renewephemeralresource_test.go | 2 -- internal/toproto6/resourcemetadata_test.go | 2 -- internal/toproto6/schema_attribute_test.go | 1 - internal/toproto6/schema_test.go | 1 - internal/toproto6/server_capabilities_test.go | 2 -- internal/toproto6/state_test.go | 2 -- .../toproto6/upgraderesourcestate_test.go | 2 -- .../toproto6/validatedatasourceconfig_test.go | 2 -- .../validateephemeralresourceconfig_test.go | 2 -- .../toproto6/validateproviderconfig_test.go | 2 -- .../toproto6/validateresourceconfig_test.go | 2 -- .../totftypes/attribute_path_step_test.go | 2 -- internal/totftypes/attribute_path_test.go | 2 -- internal/totftypes/attribute_paths_test.go | 2 -- ...pression_step_attribute_name_exact_test.go | 6 ---- ...xpression_step_element_key_int_any_test.go | 6 ---- ...ression_step_element_key_int_exact_test.go | 6 ---- ...ession_step_element_key_string_any_test.go | 6 ---- ...sion_step_element_key_string_exact_test.go | 6 ---- ...ression_step_element_key_value_any_test.go | 6 ---- ...ssion_step_element_key_value_exact_test.go | 6 ---- path/expression_step_parent_test.go | 6 ---- path/expression_steps_test.go | 18 ---------- path/expression_test.go | 34 ------------------- path/expressions_test.go | 8 ----- path/path_step_attribute_name_test.go | 6 ---- path/path_step_element_key_int_test.go | 6 ---- path/path_step_element_key_string_test.go | 6 ---- path/path_step_element_key_value_test.go | 6 ---- path/path_steps_test.go | 14 -------- path/path_test.go | 22 ------------ path/paths_test.go | 6 ---- provider/metaschema/bool_attribute_test.go | 22 ------------ provider/metaschema/float64_attribute_test.go | 22 ------------ provider/metaschema/int64_attribute_test.go | 22 ------------ provider/metaschema/list_attribute_test.go | 24 ------------- .../metaschema/list_nested_attribute_test.go | 24 ------------- provider/metaschema/map_attribute_test.go | 24 ------------- .../metaschema/map_nested_attribute_test.go | 24 ------------- .../nested_attribute_object_test.go | 8 ----- provider/metaschema/number_attribute_test.go | 22 ------------ provider/metaschema/object_attribute_test.go | 24 ------------- provider/metaschema/schema_test.go | 26 -------------- provider/metaschema/set_attribute_test.go | 24 ------------- .../metaschema/set_nested_attribute_test.go | 24 ------------- .../single_nested_attribute_test.go | 24 ------------- provider/metaschema/string_attribute_test.go | 22 ------------ provider/schema/bool_attribute_test.go | 24 ------------- provider/schema/dynamic_attribute_test.go | 24 ------------- provider/schema/float32_attribute_test.go | 24 ------------- provider/schema/float64_attribute_test.go | 24 ------------- provider/schema/int32_attribute_test.go | 24 ------------- provider/schema/int64_attribute_test.go | 24 ------------- provider/schema/list_attribute_test.go | 26 -------------- provider/schema/list_nested_attribute_test.go | 28 --------------- provider/schema/list_nested_block_test.go | 18 ---------- provider/schema/map_attribute_test.go | 26 -------------- provider/schema/map_nested_attribute_test.go | 28 --------------- .../schema/nested_attribute_object_test.go | 10 ------ provider/schema/nested_block_object_test.go | 12 ------- provider/schema/number_attribute_test.go | 24 ------------- provider/schema/object_attribute_test.go | 26 -------------- provider/schema/schema_test.go | 26 -------------- provider/schema/set_attribute_test.go | 26 -------------- provider/schema/set_nested_attribute_test.go | 28 --------------- provider/schema/set_nested_block_test.go | 18 ---------- .../schema/single_nested_attribute_test.go | 26 -------------- provider/schema/single_nested_block_test.go | 16 --------- provider/schema/string_attribute_test.go | 24 ------------- providerserver/serve_opts_test.go | 4 --- resource/schema/bool_attribute_test.go | 30 ---------------- .../schema/booldefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../boolplanmodifier/requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/dynamic_attribute_test.go | 30 ---------------- .../dynamicdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/float32_attribute_test.go | 30 ---------------- .../float32default/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/float64_attribute_test.go | 30 ---------------- .../float64default/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/int32_attribute_test.go | 30 ---------------- .../schema/int32default/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/int64_attribute_test.go | 30 ---------------- .../schema/int64default/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/list_attribute_test.go | 30 ---------------- resource/schema/list_nested_attribute_test.go | 32 ----------------- resource/schema/list_nested_block_test.go | 20 ----------- .../schema/listdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../listplanmodifier/requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/map_attribute_test.go | 30 ---------------- resource/schema/map_nested_attribute_test.go | 32 ----------------- .../schema/mapdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../mapplanmodifier/requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- .../schema/nested_attribute_object_test.go | 12 ------- resource/schema/nested_block_object_test.go | 14 -------- resource/schema/number_attribute_test.go | 30 ---------------- .../schema/numberdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/object_attribute_test.go | 30 ---------------- .../schema/objectdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- resource/schema/schema_test.go | 26 -------------- resource/schema/set_attribute_test.go | 30 ---------------- resource/schema/set_nested_attribute_test.go | 32 ----------------- resource/schema/set_nested_block_test.go | 20 ----------- .../schema/setdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../setplanmodifier/requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- .../schema/single_nested_attribute_test.go | 32 ----------------- resource/schema/single_nested_block_test.go | 18 ---------- resource/schema/string_attribute_test.go | 30 ---------------- .../schema/stringdefault/static_value_test.go | 2 -- .../requires_replace_if_configured_test.go | 2 -- .../requires_replace_if_test.go | 2 -- .../requires_replace_test.go | 2 -- .../use_state_for_unknown_test.go | 2 -- tfsdk/config_test.go | 5 --- tfsdk/convert_test.go | 1 - tfsdk/ephemeral_result_data_test.go | 7 ---- tfsdk/plan_test.go | 7 ---- tfsdk/state_test.go | 5 --- tfsdk/value_as_test.go | 1 - tfsdk/value_from_test.go | 1 - types/basetypes/bool_type_test.go | 1 - types/basetypes/bool_value_test.go | 13 ------- types/basetypes/dynamic_type_test.go | 2 -- types/basetypes/dynamic_value_test.go | 7 ---- types/basetypes/float32_type_test.go | 1 - types/basetypes/float32_value_test.go | 14 -------- types/basetypes/float64_type_test.go | 3 -- types/basetypes/float64_value_test.go | 14 -------- types/basetypes/int32_type_test.go | 1 - types/basetypes/int32_value_test.go | 13 ------- types/basetypes/int64_type_test.go | 1 - types/basetypes/int64_value_test.go | 13 ------- types/basetypes/list_type_test.go | 7 ---- types/basetypes/list_value_test.go | 18 ---------- types/basetypes/map_type_test.go | 7 ---- types/basetypes/map_value_test.go | 18 ---------- types/basetypes/number_type_test.go | 1 - types/basetypes/number_value_test.go | 9 ----- types/basetypes/object_type_test.go | 4 --- types/basetypes/object_value_test.go | 16 --------- types/basetypes/set_type_test.go | 7 ---- types/basetypes/set_value_test.go | 17 ---------- types/basetypes/string_type_test.go | 1 - types/basetypes/string_value_test.go | 13 ------- types/basetypes/tuple_type_test.go | 5 --- types/basetypes/tuple_value_test.go | 14 -------- 477 files changed, 4 insertions(+), 3816 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 429044d2c..1e7c56bf6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,17 @@ issues: - max-per-linter: 0 + max-issues-per-linter: 0 max-same-issues: 0 linters: disable-all: true enable: + - copyloopvar - durationcheck - errcheck - - exportloopref - forcetypeassert - gofmt - gosimple + - govet - ineffassign - makezero - misspell @@ -18,11 +19,10 @@ linters: - paralleltest - predeclared - staticcheck - - tenv - unconvert - unparam - unused - - govet + - usetesting run: # Prevent false positive timeouts in CI diff --git a/datasource/schema/bool_attribute_test.go b/datasource/schema/bool_attribute_test.go index b493d892d..ea22a21fc 100644 --- a/datasource/schema/bool_attribute_test.go +++ b/datasource/schema/bool_attribute_test.go @@ -56,8 +56,6 @@ func TestBoolAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestBoolAttributeBoolValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestBoolAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestBoolAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestBoolAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestBoolAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestBoolAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestBoolAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestBoolAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestBoolAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestBoolAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestBoolAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/dynamic_attribute_test.go b/datasource/schema/dynamic_attribute_test.go index 95fe01fb4..7166ae9cb 100644 --- a/datasource/schema/dynamic_attribute_test.go +++ b/datasource/schema/dynamic_attribute_test.go @@ -56,8 +56,6 @@ func TestDynamicAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestDynamicAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestDynamicAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestDynamicAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestDynamicAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestDynamicAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestDynamicAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestDynamicAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestDynamicAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestDynamicAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestDynamicAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestDynamicAttributeDynamicValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/float32_attribute_test.go b/datasource/schema/float32_attribute_test.go index 1040f6245..3149803e0 100644 --- a/datasource/schema/float32_attribute_test.go +++ b/datasource/schema/float32_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat32AttributeFloat32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestFloat32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestFloat32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestFloat32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestFloat32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestFloat32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/float64_attribute_test.go b/datasource/schema/float64_attribute_test.go index b83e16abd..c73193387 100644 --- a/datasource/schema/float64_attribute_test.go +++ b/datasource/schema/float64_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat64AttributeFloat64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestFloat64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestFloat64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestFloat64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestFloat64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestFloat64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/int32_attribute_test.go b/datasource/schema/int32_attribute_test.go index 23ce97fd5..15404c9e8 100644 --- a/datasource/schema/int32_attribute_test.go +++ b/datasource/schema/int32_attribute_test.go @@ -56,8 +56,6 @@ func TestInt32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt32AttributeInt32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestInt32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestInt32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestInt32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestInt32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestInt32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/int64_attribute_test.go b/datasource/schema/int64_attribute_test.go index b15eeb85f..ed0544c62 100644 --- a/datasource/schema/int64_attribute_test.go +++ b/datasource/schema/int64_attribute_test.go @@ -56,8 +56,6 @@ func TestInt64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt64AttributeInt64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestInt64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestInt64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestInt64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestInt64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestInt64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/list_attribute_test.go b/datasource/schema/list_attribute_test.go index 1e7335ce3..c38c41e2f 100644 --- a/datasource/schema/list_attribute_test.go +++ b/datasource/schema/list_attribute_test.go @@ -59,8 +59,6 @@ func TestListAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestListAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestListAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestListAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestListAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestListAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -283,8 +271,6 @@ func TestListAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -317,8 +303,6 @@ func TestListAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +335,6 @@ func TestListAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -385,8 +367,6 @@ func TestListAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -413,8 +393,6 @@ func TestListAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -447,8 +425,6 @@ func TestListAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -536,8 +512,6 @@ func TestListAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/list_nested_attribute_test.go b/datasource/schema/list_nested_attribute_test.go index fd1cf6941..b7ea5be20 100644 --- a/datasource/schema/list_nested_attribute_test.go +++ b/datasource/schema/list_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestListNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestListNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestListNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestListNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestListNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestListNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestListNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -436,8 +422,6 @@ func TestListNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +460,6 @@ func TestListNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -516,8 +498,6 @@ func TestListNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -556,8 +536,6 @@ func TestListNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -584,8 +562,6 @@ func TestListNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -624,8 +600,6 @@ func TestListNestedAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -703,8 +677,6 @@ func TestListNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/list_nested_block_test.go b/datasource/schema/list_nested_block_test.go index 6dce467fa..dcf2f0d6b 100644 --- a/datasource/schema/list_nested_block_test.go +++ b/datasource/schema/list_nested_block_test.go @@ -86,8 +86,6 @@ func TestListNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestListNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestListNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestListNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestListNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestListNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestListNestedBlockListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestListNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestListNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/map_attribute_test.go b/datasource/schema/map_attribute_test.go index ab3d31167..af361a636 100644 --- a/datasource/schema/map_attribute_test.go +++ b/datasource/schema/map_attribute_test.go @@ -59,8 +59,6 @@ func TestMapAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestMapAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestMapAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestMapAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestMapAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestMapAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -283,8 +271,6 @@ func TestMapAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -317,8 +303,6 @@ func TestMapAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +335,6 @@ func TestMapAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -385,8 +367,6 @@ func TestMapAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -413,8 +393,6 @@ func TestMapAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -447,8 +425,6 @@ func TestMapAttributeMapValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -536,8 +512,6 @@ func TestMapAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/map_nested_attribute_test.go b/datasource/schema/map_nested_attribute_test.go index 671f55593..d691cda82 100644 --- a/datasource/schema/map_nested_attribute_test.go +++ b/datasource/schema/map_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestMapNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestMapNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestMapNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestMapNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestMapNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestMapNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestMapNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -436,8 +422,6 @@ func TestMapNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +460,6 @@ func TestMapNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -516,8 +498,6 @@ func TestMapNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -556,8 +536,6 @@ func TestMapNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -584,8 +562,6 @@ func TestMapNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -624,8 +600,6 @@ func TestMapNestedAttributeMapNestedValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -703,8 +677,6 @@ func TestMapNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/nested_attribute_object_test.go b/datasource/schema/nested_attribute_object_test.go index db5bc1277..74bf24506 100644 --- a/datasource/schema/nested_attribute_object_test.go +++ b/datasource/schema/nested_attribute_object_test.go @@ -80,8 +80,6 @@ func TestNestedAttributeObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestNestedAttributeObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +181,6 @@ func TestNestedAttributeObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -223,8 +217,6 @@ func TestNestedAttributeObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -265,8 +257,6 @@ func TestNestedAttributeObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/nested_block_object_test.go b/datasource/schema/nested_block_object_test.go index 2e0aa4738..550b8563f 100644 --- a/datasource/schema/nested_block_object_test.go +++ b/datasource/schema/nested_block_object_test.go @@ -98,8 +98,6 @@ func TestNestedBlockObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -163,8 +161,6 @@ func TestNestedBlockObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -203,8 +199,6 @@ func TestNestedBlockObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -259,8 +253,6 @@ func TestNestedBlockObjectGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -297,8 +289,6 @@ func TestNestedBlockObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +341,6 @@ func TestNestedBlockObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/number_attribute_test.go b/datasource/schema/number_attribute_test.go index 449dda7ce..c30b711eb 100644 --- a/datasource/schema/number_attribute_test.go +++ b/datasource/schema/number_attribute_test.go @@ -56,8 +56,6 @@ func TestNumberAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestNumberAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestNumberAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestNumberAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestNumberAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestNumberAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestNumberAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestNumberAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestNumberAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestNumberAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestNumberAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestNumberAttributeNumberValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/object_attribute_test.go b/datasource/schema/object_attribute_test.go index ab3c428ce..d5c45ee64 100644 --- a/datasource/schema/object_attribute_test.go +++ b/datasource/schema/object_attribute_test.go @@ -65,8 +65,6 @@ func TestObjectAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -113,8 +111,6 @@ func TestObjectAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -153,8 +149,6 @@ func TestObjectAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -187,8 +181,6 @@ func TestObjectAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -221,8 +213,6 @@ func TestObjectAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -255,8 +245,6 @@ func TestObjectAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -289,8 +277,6 @@ func TestObjectAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -323,8 +309,6 @@ func TestObjectAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -357,8 +341,6 @@ func TestObjectAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -391,8 +373,6 @@ func TestObjectAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -419,8 +399,6 @@ func TestObjectAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -453,8 +431,6 @@ func TestObjectAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -569,8 +545,6 @@ func TestObjectAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/schema_test.go b/datasource/schema/schema_test.go index 48dea22c4..a6eb8ee5c 100644 --- a/datasource/schema/schema_test.go +++ b/datasource/schema/schema_test.go @@ -100,8 +100,6 @@ func TestSchemaApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,7 +267,6 @@ func TestSchemaAttributeAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,7 +387,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -448,8 +444,6 @@ func TestSchemaGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -504,8 +498,6 @@ func TestSchemaGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -542,8 +534,6 @@ func TestSchemaGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -580,8 +570,6 @@ func TestSchemaGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +606,6 @@ func TestSchemaGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -650,8 +636,6 @@ func TestSchemaGetVersion(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -698,8 +682,6 @@ func TestSchemaType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -839,8 +821,6 @@ func TestSchemaTypeAtPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -972,8 +952,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1029,8 +1007,6 @@ func TestSchemaValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1342,8 +1318,6 @@ func TestSchemaValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/set_attribute_test.go b/datasource/schema/set_attribute_test.go index 9a0760b9b..02fcb830c 100644 --- a/datasource/schema/set_attribute_test.go +++ b/datasource/schema/set_attribute_test.go @@ -59,8 +59,6 @@ func TestSetAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestSetAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestSetAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestSetAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestSetAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestSetAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -283,8 +271,6 @@ func TestSetAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -317,8 +303,6 @@ func TestSetAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +335,6 @@ func TestSetAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -385,8 +367,6 @@ func TestSetAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -413,8 +393,6 @@ func TestSetAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -447,8 +425,6 @@ func TestSetAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -536,8 +512,6 @@ func TestSetAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/set_nested_attribute_test.go b/datasource/schema/set_nested_attribute_test.go index 4b064ee7c..1a50cac03 100644 --- a/datasource/schema/set_nested_attribute_test.go +++ b/datasource/schema/set_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestSetNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestSetNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestSetNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestSetNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestSetNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestSetNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestSetNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -436,8 +422,6 @@ func TestSetNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +460,6 @@ func TestSetNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -516,8 +498,6 @@ func TestSetNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -556,8 +536,6 @@ func TestSetNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -584,8 +562,6 @@ func TestSetNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -624,8 +600,6 @@ func TestSetNestedAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -703,8 +677,6 @@ func TestSetNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/set_nested_block_test.go b/datasource/schema/set_nested_block_test.go index 40096f374..a868bad72 100644 --- a/datasource/schema/set_nested_block_test.go +++ b/datasource/schema/set_nested_block_test.go @@ -86,8 +86,6 @@ func TestSetNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestSetNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestSetNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestSetNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestSetNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestSetNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestSetNestedBlockSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestSetNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestSetNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/single_nested_attribute_test.go b/datasource/schema/single_nested_attribute_test.go index 2a62a8e42..0a7a0b66f 100644 --- a/datasource/schema/single_nested_attribute_test.go +++ b/datasource/schema/single_nested_attribute_test.go @@ -82,8 +82,6 @@ func TestSingleNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +171,6 @@ func TestSingleNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -211,8 +207,6 @@ func TestSingleNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +243,6 @@ func TestSingleNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +279,6 @@ func TestSingleNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -323,8 +313,6 @@ func TestSingleNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -365,8 +353,6 @@ func TestSingleNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -403,8 +389,6 @@ func TestSingleNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -441,8 +425,6 @@ func TestSingleNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -479,8 +461,6 @@ func TestSingleNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -517,8 +497,6 @@ func TestSingleNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -545,8 +523,6 @@ func TestSingleNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -583,8 +559,6 @@ func TestSingleNestedAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/single_nested_block_test.go b/datasource/schema/single_nested_block_test.go index 041f98bfa..0208eb561 100644 --- a/datasource/schema/single_nested_block_test.go +++ b/datasource/schema/single_nested_block_test.go @@ -99,8 +99,6 @@ func TestSingleNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +149,6 @@ func TestSingleNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +249,6 @@ func TestSingleNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -291,8 +285,6 @@ func TestSingleNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -329,8 +321,6 @@ func TestSingleNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +369,6 @@ func TestSingleNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -417,8 +405,6 @@ func TestSingleNestedBlockObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -471,8 +457,6 @@ func TestSingleNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/datasource/schema/string_attribute_test.go b/datasource/schema/string_attribute_test.go index f86110feb..09ea194f2 100644 --- a/datasource/schema/string_attribute_test.go +++ b/datasource/schema/string_attribute_test.go @@ -56,8 +56,6 @@ func TestStringAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestStringAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestStringAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestStringAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestStringAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestStringAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestStringAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestStringAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestStringAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestStringAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestStringAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestStringAttributeStringValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/diag/diagnostics_test.go b/diag/diagnostics_test.go index 82def641e..cdc71ad7d 100644 --- a/diag/diagnostics_test.go +++ b/diag/diagnostics_test.go @@ -61,7 +61,6 @@ func TestDiagnosticsAddAttributeError(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,7 +122,6 @@ func TestDiagnosticsAddAttributeWarning(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,7 +179,6 @@ func TestDiagnosticsAddError(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -239,7 +236,6 @@ func TestDiagnosticsAddWarning(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -361,7 +357,6 @@ func TestDiagnosticsAppend(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -462,7 +457,6 @@ func TestDiagnosticsContains(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -588,8 +582,6 @@ func TestDiagnosticsEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -637,7 +629,6 @@ func TestDiagnosticsHasError(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -682,7 +673,6 @@ func TestDiagnosticsErrorsCount(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -727,7 +717,6 @@ func TestDiagnosticsWarningsCount(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -774,7 +763,6 @@ func TestDiagnosticsErrors(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -821,7 +809,6 @@ func TestDiagnosticsWarnings(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/diag/error_diagnostic_test.go b/diag/error_diagnostic_test.go index 2aaa44ecd..9746e6776 100644 --- a/diag/error_diagnostic_test.go +++ b/diag/error_diagnostic_test.go @@ -45,7 +45,6 @@ func TestErrorDiagnosticEqual(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/diag/warning_diagnostic_test.go b/diag/warning_diagnostic_test.go index 856346df0..177ed2082 100644 --- a/diag/warning_diagnostic_test.go +++ b/diag/warning_diagnostic_test.go @@ -45,7 +45,6 @@ func TestWarningDiagnosticEqual(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/bool_attribute_test.go b/ephemeral/schema/bool_attribute_test.go index 7eebac422..30cc54aa2 100644 --- a/ephemeral/schema/bool_attribute_test.go +++ b/ephemeral/schema/bool_attribute_test.go @@ -56,8 +56,6 @@ func TestBoolAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestBoolAttributeBoolValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestBoolAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestBoolAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestBoolAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestBoolAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestBoolAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestBoolAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestBoolAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestBoolAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestBoolAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestBoolAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/dynamic_attribute_test.go b/ephemeral/schema/dynamic_attribute_test.go index 99fbf6f4e..4d01e95a0 100644 --- a/ephemeral/schema/dynamic_attribute_test.go +++ b/ephemeral/schema/dynamic_attribute_test.go @@ -55,8 +55,6 @@ func TestDynamicAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -103,8 +101,6 @@ func TestDynamicAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestDynamicAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -172,8 +166,6 @@ func TestDynamicAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -206,8 +198,6 @@ func TestDynamicAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -240,8 +230,6 @@ func TestDynamicAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestDynamicAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -308,8 +294,6 @@ func TestDynamicAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -342,8 +326,6 @@ func TestDynamicAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -376,8 +358,6 @@ func TestDynamicAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -404,8 +384,6 @@ func TestDynamicAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -438,8 +416,6 @@ func TestDynamicAttributeDynamicValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/float32_attribute_test.go b/ephemeral/schema/float32_attribute_test.go index f542972aa..1617d12af 100644 --- a/ephemeral/schema/float32_attribute_test.go +++ b/ephemeral/schema/float32_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat32AttributeFloat32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestFloat32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestFloat32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestFloat32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestFloat32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestFloat32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/float64_attribute_test.go b/ephemeral/schema/float64_attribute_test.go index db9e8db2b..4bfb2ebd0 100644 --- a/ephemeral/schema/float64_attribute_test.go +++ b/ephemeral/schema/float64_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat64AttributeFloat64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestFloat64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestFloat64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestFloat64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestFloat64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestFloat54AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/int32_attribute_test.go b/ephemeral/schema/int32_attribute_test.go index e118cb0db..b4d3cc6dc 100644 --- a/ephemeral/schema/int32_attribute_test.go +++ b/ephemeral/schema/int32_attribute_test.go @@ -56,8 +56,6 @@ func TestInt32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt32AttributeInt32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestInt32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestInt32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestInt32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestInt32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestInt2AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/int64_attribute_test.go b/ephemeral/schema/int64_attribute_test.go index 5f07ff2ff..6b7c1849f 100644 --- a/ephemeral/schema/int64_attribute_test.go +++ b/ephemeral/schema/int64_attribute_test.go @@ -56,8 +56,6 @@ func TestInt64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt64AttributeInt64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestInt64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestInt64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestInt64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +391,6 @@ func TestInt64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestInt64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/list_attribute_test.go b/ephemeral/schema/list_attribute_test.go index 4ab1985d8..cdbc9feb6 100644 --- a/ephemeral/schema/list_attribute_test.go +++ b/ephemeral/schema/list_attribute_test.go @@ -58,8 +58,6 @@ func TestListAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -106,8 +104,6 @@ func TestListAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +142,6 @@ func TestListAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +174,6 @@ func TestListAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -214,8 +206,6 @@ func TestListAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +238,6 @@ func TestListAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -282,8 +270,6 @@ func TestListAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +302,6 @@ func TestListAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +334,6 @@ func TestListAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -384,8 +366,6 @@ func TestListAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +398,6 @@ func TestListAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -507,8 +485,6 @@ func TestListAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -536,8 +512,6 @@ func TestListAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/list_nested_attribute_test.go b/ephemeral/schema/list_nested_attribute_test.go index 7e1153e79..914af418c 100644 --- a/ephemeral/schema/list_nested_attribute_test.go +++ b/ephemeral/schema/list_nested_attribute_test.go @@ -86,8 +86,6 @@ func TestListNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestListNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -231,8 +227,6 @@ func TestListNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -271,8 +265,6 @@ func TestListNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -311,8 +303,6 @@ func TestListNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +339,6 @@ func TestListNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -395,8 +383,6 @@ func TestListNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -435,8 +421,6 @@ func TestListNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -475,8 +459,6 @@ func TestListNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -515,8 +497,6 @@ func TestListNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -555,8 +535,6 @@ func TestListNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -583,8 +561,6 @@ func TestListNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -623,8 +599,6 @@ func TestListNestedAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -702,8 +676,6 @@ func TestListNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/list_nested_block_test.go b/ephemeral/schema/list_nested_block_test.go index bb20c35de..763afd28c 100644 --- a/ephemeral/schema/list_nested_block_test.go +++ b/ephemeral/schema/list_nested_block_test.go @@ -86,8 +86,6 @@ func TestListNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestListNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestListNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestListNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestListNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestListNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestListNestedBlockListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestListNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestListNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/map_attribute_test.go b/ephemeral/schema/map_attribute_test.go index 7da8aa46f..f750b5f5d 100644 --- a/ephemeral/schema/map_attribute_test.go +++ b/ephemeral/schema/map_attribute_test.go @@ -58,8 +58,6 @@ func TestMapAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -106,8 +104,6 @@ func TestMapAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +142,6 @@ func TestMapAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +174,6 @@ func TestMapAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -214,8 +206,6 @@ func TestMapAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +238,6 @@ func TestMapAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -282,8 +270,6 @@ func TestMapAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +302,6 @@ func TestMapAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +334,6 @@ func TestMapAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -384,8 +366,6 @@ func TestMapAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -412,8 +392,6 @@ func TestMapAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -446,8 +424,6 @@ func TestMapAttributeMapValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -535,8 +511,6 @@ func TestMapAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/map_nested_attribute_test.go b/ephemeral/schema/map_nested_attribute_test.go index ef21cf89b..37c2f1aa2 100644 --- a/ephemeral/schema/map_nested_attribute_test.go +++ b/ephemeral/schema/map_nested_attribute_test.go @@ -86,8 +86,6 @@ func TestMapNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestMapNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -231,8 +227,6 @@ func TestMapNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -271,8 +265,6 @@ func TestMapNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -311,8 +303,6 @@ func TestMapNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +339,6 @@ func TestMapNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -395,8 +383,6 @@ func TestMapNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -435,8 +421,6 @@ func TestMapNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -475,8 +459,6 @@ func TestMapNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -515,8 +497,6 @@ func TestMapNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -555,8 +535,6 @@ func TestMapNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -583,8 +561,6 @@ func TestMapNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -623,8 +599,6 @@ func TestMapNestedAttributeMapNestedValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -702,8 +676,6 @@ func TestMapNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/nested_attribute_object_test.go b/ephemeral/schema/nested_attribute_object_test.go index 65c76544b..f4827f212 100644 --- a/ephemeral/schema/nested_attribute_object_test.go +++ b/ephemeral/schema/nested_attribute_object_test.go @@ -80,8 +80,6 @@ func TestNestedAttributeObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestNestedAttributeObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +181,6 @@ func TestNestedAttributeObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -223,8 +217,6 @@ func TestNestedAttributeObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -265,8 +257,6 @@ func TestNestedAttributeObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/nested_block_object_test.go b/ephemeral/schema/nested_block_object_test.go index f484d10ca..7c2ebffc5 100644 --- a/ephemeral/schema/nested_block_object_test.go +++ b/ephemeral/schema/nested_block_object_test.go @@ -98,8 +98,6 @@ func TestNestedBlockObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -163,8 +161,6 @@ func TestNestedBlockObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -203,8 +199,6 @@ func TestNestedBlockObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -259,8 +253,6 @@ func TestNestedBlockObjectGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -297,8 +289,6 @@ func TestNestedBlockObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +341,6 @@ func TestNestedBlockObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/number_attribute_test.go b/ephemeral/schema/number_attribute_test.go index d3636d006..a15142afa 100644 --- a/ephemeral/schema/number_attribute_test.go +++ b/ephemeral/schema/number_attribute_test.go @@ -56,8 +56,6 @@ func TestNumberAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestNumberAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestNumberAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestNumberAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestNumberAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestNumberAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestNumberAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -309,8 +295,6 @@ func TestNumberAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,8 +327,6 @@ func TestNumberAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +359,6 @@ func TestNumberAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestNumberAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -439,8 +417,6 @@ func TestNumberAttributeNumberValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/object_attribute_test.go b/ephemeral/schema/object_attribute_test.go index 76f4aab38..f49e4afca 100644 --- a/ephemeral/schema/object_attribute_test.go +++ b/ephemeral/schema/object_attribute_test.go @@ -65,8 +65,6 @@ func TestObjectAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -113,8 +111,6 @@ func TestObjectAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -153,8 +149,6 @@ func TestObjectAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -187,8 +181,6 @@ func TestObjectAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -221,8 +213,6 @@ func TestObjectAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -255,8 +245,6 @@ func TestObjectAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -289,8 +277,6 @@ func TestObjectAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -323,8 +309,6 @@ func TestObjectAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -357,8 +341,6 @@ func TestObjectAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -391,8 +373,6 @@ func TestObjectAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -425,8 +405,6 @@ func TestObjectAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -453,8 +431,6 @@ func TestObjectAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -569,8 +545,6 @@ func TestObjectAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/schema_test.go b/ephemeral/schema/schema_test.go index 64cc4806b..e08d76a5d 100644 --- a/ephemeral/schema/schema_test.go +++ b/ephemeral/schema/schema_test.go @@ -100,8 +100,6 @@ func TestSchemaApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,7 +267,6 @@ func TestSchemaAttributeAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,7 +387,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -448,8 +444,6 @@ func TestSchemaGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -504,8 +498,6 @@ func TestSchemaGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -542,8 +534,6 @@ func TestSchemaGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -580,8 +570,6 @@ func TestSchemaGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +606,6 @@ func TestSchemaGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -650,8 +636,6 @@ func TestSchemaGetVersion(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -698,8 +682,6 @@ func TestSchemaType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -839,8 +821,6 @@ func TestSchemaTypeAtPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -972,8 +952,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1029,8 +1007,6 @@ func TestSchemaValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1342,8 +1318,6 @@ func TestSchemaValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/set_attribute_test.go b/ephemeral/schema/set_attribute_test.go index a6211d666..d3c158fda 100644 --- a/ephemeral/schema/set_attribute_test.go +++ b/ephemeral/schema/set_attribute_test.go @@ -58,8 +58,6 @@ func TestSetAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -106,8 +104,6 @@ func TestSetAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +142,6 @@ func TestSetAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +174,6 @@ func TestSetAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -214,8 +206,6 @@ func TestSetAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +238,6 @@ func TestSetAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -282,8 +270,6 @@ func TestSetAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +302,6 @@ func TestSetAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +334,6 @@ func TestSetAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -384,8 +366,6 @@ func TestSetAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -412,8 +392,6 @@ func TestSetAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -446,8 +424,6 @@ func TestSetAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -535,8 +511,6 @@ func TestSetAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/set_nested_attribute_test.go b/ephemeral/schema/set_nested_attribute_test.go index bcfa627a4..3abd59839 100644 --- a/ephemeral/schema/set_nested_attribute_test.go +++ b/ephemeral/schema/set_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestSetNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestSetNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestSetNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestSetNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestSetNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestSetNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestSetNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -436,8 +422,6 @@ func TestSetNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +460,6 @@ func TestSetNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -516,8 +498,6 @@ func TestSetNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -556,8 +536,6 @@ func TestSetNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -584,8 +562,6 @@ func TestSetNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -624,8 +600,6 @@ func TestSetNestedAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -703,8 +677,6 @@ func TestSetNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/set_nested_block_test.go b/ephemeral/schema/set_nested_block_test.go index 0862026f4..d403d4486 100644 --- a/ephemeral/schema/set_nested_block_test.go +++ b/ephemeral/schema/set_nested_block_test.go @@ -86,8 +86,6 @@ func TestSetNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestSetNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestSetNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestSetNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestSetNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestSetNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestSetNestedBlockSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestSetNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestSetNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/single_nested_attribute_test.go b/ephemeral/schema/single_nested_attribute_test.go index d3690828f..8f4e4e783 100644 --- a/ephemeral/schema/single_nested_attribute_test.go +++ b/ephemeral/schema/single_nested_attribute_test.go @@ -81,8 +81,6 @@ func TestSingleNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -172,8 +170,6 @@ func TestSingleNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -210,8 +206,6 @@ func TestSingleNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +242,6 @@ func TestSingleNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -286,8 +278,6 @@ func TestSingleNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -322,8 +312,6 @@ func TestSingleNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -364,8 +352,6 @@ func TestSingleNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -402,8 +388,6 @@ func TestSingleNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -440,8 +424,6 @@ func TestSingleNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -478,8 +460,6 @@ func TestSingleNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -516,8 +496,6 @@ func TestSingleNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -544,8 +522,6 @@ func TestSingleNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -582,8 +558,6 @@ func TestSingleNestedAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/single_nested_block_test.go b/ephemeral/schema/single_nested_block_test.go index 994f94894..6c6a74639 100644 --- a/ephemeral/schema/single_nested_block_test.go +++ b/ephemeral/schema/single_nested_block_test.go @@ -98,8 +98,6 @@ func TestSingleNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -150,8 +148,6 @@ func TestSingleNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -252,8 +248,6 @@ func TestSingleNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -290,8 +284,6 @@ func TestSingleNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +320,6 @@ func TestSingleNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestSingleNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -416,8 +404,6 @@ func TestSingleNestedBlockObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -470,8 +456,6 @@ func TestSingleNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/ephemeral/schema/string_attribute_test.go b/ephemeral/schema/string_attribute_test.go index e0577b3cb..9f8532f34 100644 --- a/ephemeral/schema/string_attribute_test.go +++ b/ephemeral/schema/string_attribute_test.go @@ -55,8 +55,6 @@ func TestStringAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -103,8 +101,6 @@ func TestStringAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestStringAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -172,8 +166,6 @@ func TestStringAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -206,8 +198,6 @@ func TestStringAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -240,8 +230,6 @@ func TestStringAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestStringAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -308,8 +294,6 @@ func TestStringAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -342,8 +326,6 @@ func TestStringAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -376,8 +358,6 @@ func TestStringAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -404,8 +384,6 @@ func TestStringAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -438,8 +416,6 @@ func TestStringAttributeStringValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/arguments_data_test.go b/function/arguments_data_test.go index 7b8d2f83e..6c8e55fb9 100644 --- a/function/arguments_data_test.go +++ b/function/arguments_data_test.go @@ -68,8 +68,6 @@ func TestArgumentsDataEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -357,8 +355,6 @@ func TestArgumentsDataGet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +460,6 @@ func TestArgumentsDataGetArgument(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/bool_parameter_test.go b/function/bool_parameter_test.go index 6082fc279..2495bd19a 100644 --- a/function/bool_parameter_test.go +++ b/function/bool_parameter_test.go @@ -44,8 +44,6 @@ func TestBoolParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestBoolParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestBoolParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestBoolParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestBoolParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestBoolParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestBoolParameterBoolValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestBoolParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/bool_return_test.go b/function/bool_return_test.go index 5d27e7429..3894721a1 100644 --- a/function/bool_return_test.go +++ b/function/bool_return_test.go @@ -33,8 +33,6 @@ func TestBoolReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/definition_test.go b/function/definition_test.go index 87dcc27e6..d4625b685 100644 --- a/function/definition_test.go +++ b/function/definition_test.go @@ -293,8 +293,6 @@ func TestDefinitionValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/dynamic_parameter_test.go b/function/dynamic_parameter_test.go index d79889c83..94b91d0d0 100644 --- a/function/dynamic_parameter_test.go +++ b/function/dynamic_parameter_test.go @@ -44,8 +44,6 @@ func TestDynamicParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestDynamicParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestDynamicParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestDynamicParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestDynamicParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestDynamicParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestDynamicParameterDynamicValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestDynamicParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/dynamic_return_test.go b/function/dynamic_return_test.go index 1c1941050..67eaf918d 100644 --- a/function/dynamic_return_test.go +++ b/function/dynamic_return_test.go @@ -33,8 +33,6 @@ func TestDynamicReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/float32_parameter_test.go b/function/float32_parameter_test.go index 9292bf8c1..6dc40f894 100644 --- a/function/float32_parameter_test.go +++ b/function/float32_parameter_test.go @@ -44,8 +44,6 @@ func TestFloat32ParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestFloat32ParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestFloat32ParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestFloat32ParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestFloat32ParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestFloat32ParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestFloat32ParameterFloat32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestFloat32ParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/float32_return_test.go b/function/float32_return_test.go index 242041ebe..fe26963f2 100644 --- a/function/float32_return_test.go +++ b/function/float32_return_test.go @@ -34,8 +34,6 @@ func TestFloat32ReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/float64_parameter_test.go b/function/float64_parameter_test.go index 1e99b0904..60dc4495c 100644 --- a/function/float64_parameter_test.go +++ b/function/float64_parameter_test.go @@ -44,8 +44,6 @@ func TestFloat64ParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestFloat64ParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestFloat64ParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestFloat64ParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestFloat64ParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestFloat64ParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestFloat64ParameterFloat64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestFloat64ParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/float64_return_test.go b/function/float64_return_test.go index 8b48732c4..31a682920 100644 --- a/function/float64_return_test.go +++ b/function/float64_return_test.go @@ -33,8 +33,6 @@ func TestFloat64ReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/func_error_test.go b/function/func_error_test.go index 6232071e0..b95d89bb9 100644 --- a/function/func_error_test.go +++ b/function/func_error_test.go @@ -74,7 +74,6 @@ func TestFunctionError_Equal(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,7 +109,6 @@ func TestFunctionError_Error(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -219,7 +217,6 @@ func TestConcatFuncErrors(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -310,7 +307,6 @@ func TestFuncErrorFromDiags(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/int32_parameter_test.go b/function/int32_parameter_test.go index 29bb0e29d..880e8c1e0 100644 --- a/function/int32_parameter_test.go +++ b/function/int32_parameter_test.go @@ -44,8 +44,6 @@ func TestInt32ParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestInt32ParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestInt32ParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestInt32ParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestInt32ParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestInt32ParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestInt32ParameterInt32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestInt32ParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/int32_return_test.go b/function/int32_return_test.go index 555fe0c1a..ef13ca85f 100644 --- a/function/int32_return_test.go +++ b/function/int32_return_test.go @@ -34,8 +34,6 @@ func TestInt32ReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/int64_parameter_test.go b/function/int64_parameter_test.go index a0880de07..d4b9c59e1 100644 --- a/function/int64_parameter_test.go +++ b/function/int64_parameter_test.go @@ -44,8 +44,6 @@ func TestInt64ParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestInt64ParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestInt64ParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestInt64ParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestInt64ParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestInt64ParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestInt64ParameterInt64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestInt64ParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/int64_return_test.go b/function/int64_return_test.go index 7f15e3006..eae8b4bb5 100644 --- a/function/int64_return_test.go +++ b/function/int64_return_test.go @@ -33,8 +33,6 @@ func TestInt64ReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/list_parameter_test.go b/function/list_parameter_test.go index abca3b288..630053b20 100644 --- a/function/list_parameter_test.go +++ b/function/list_parameter_test.go @@ -45,8 +45,6 @@ func TestListParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -85,8 +83,6 @@ func TestListParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -125,8 +121,6 @@ func TestListParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -165,8 +159,6 @@ func TestListParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -199,8 +191,6 @@ func TestListParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -245,8 +235,6 @@ func TestListParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestListParameterListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +409,6 @@ func TestListParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/list_return_test.go b/function/list_return_test.go index 1465597d3..aaa1b97ab 100644 --- a/function/list_return_test.go +++ b/function/list_return_test.go @@ -49,8 +49,6 @@ func TestListReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestListReturnValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/map_parameter_test.go b/function/map_parameter_test.go index 003f03f0b..f58e30193 100644 --- a/function/map_parameter_test.go +++ b/function/map_parameter_test.go @@ -45,8 +45,6 @@ func TestMapParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -85,8 +83,6 @@ func TestMapParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -125,8 +121,6 @@ func TestMapParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -165,8 +159,6 @@ func TestMapParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -199,8 +191,6 @@ func TestMapParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -245,8 +235,6 @@ func TestMapParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestMapParameterMapValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +409,6 @@ func TestMapParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/map_return_test.go b/function/map_return_test.go index b919231c2..e0b8a9180 100644 --- a/function/map_return_test.go +++ b/function/map_return_test.go @@ -49,8 +49,6 @@ func TestMapReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestMapReturnValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/number_parameter_test.go b/function/number_parameter_test.go index d5fbc23f1..df6d09db5 100644 --- a/function/number_parameter_test.go +++ b/function/number_parameter_test.go @@ -44,8 +44,6 @@ func TestNumberParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestNumberParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestNumberParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestNumberParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestNumberParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestNumberParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestNumberParameterNumberValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestNumberParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/number_return_test.go b/function/number_return_test.go index 870548470..f7495b723 100644 --- a/function/number_return_test.go +++ b/function/number_return_test.go @@ -33,8 +33,6 @@ func TestNumberReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/object_parameter_test.go b/function/object_parameter_test.go index 79c86e234..2cb78d05d 100644 --- a/function/object_parameter_test.go +++ b/function/object_parameter_test.go @@ -45,8 +45,6 @@ func TestObjectParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -85,8 +83,6 @@ func TestObjectParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -125,8 +121,6 @@ func TestObjectParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -165,8 +159,6 @@ func TestObjectParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -199,8 +191,6 @@ func TestObjectParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +243,6 @@ func TestObjectParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -295,8 +283,6 @@ func TestObjectParameterObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -479,8 +465,6 @@ func TestObjectParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/object_return_test.go b/function/object_return_test.go index af1c78652..5e984c3b2 100644 --- a/function/object_return_test.go +++ b/function/object_return_test.go @@ -57,8 +57,6 @@ func TestObjectReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -165,8 +163,6 @@ func TestObjectReturnValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/result_data_test.go b/function/result_data_test.go index 7bd59010a..f32cbf560 100644 --- a/function/result_data_test.go +++ b/function/result_data_test.go @@ -54,8 +54,6 @@ func TestResultDataSet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/set_parameter_test.go b/function/set_parameter_test.go index 705640dbb..eeef290ab 100644 --- a/function/set_parameter_test.go +++ b/function/set_parameter_test.go @@ -45,8 +45,6 @@ func TestSetParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -85,8 +83,6 @@ func TestSetParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -125,8 +121,6 @@ func TestSetParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -165,8 +159,6 @@ func TestSetParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -199,8 +191,6 @@ func TestSetParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -245,8 +235,6 @@ func TestSetParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestSetParameterSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +409,6 @@ func TestSetParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/set_return_test.go b/function/set_return_test.go index ef973f3f6..9623a4cfd 100644 --- a/function/set_return_test.go +++ b/function/set_return_test.go @@ -49,8 +49,6 @@ func TestSetReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestSetReturnValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/string_parameter_test.go b/function/string_parameter_test.go index 73a8a18cb..3fe3b04b7 100644 --- a/function/string_parameter_test.go +++ b/function/string_parameter_test.go @@ -44,8 +44,6 @@ func TestStringParameterGetAllowNullValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -84,8 +82,6 @@ func TestStringParameterGetAllowUnknownValues(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -124,8 +120,6 @@ func TestStringParameterGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +158,6 @@ func TestStringParameterGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestStringParameterGetName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +222,6 @@ func TestStringParameterGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,8 +262,6 @@ func TestStringParameterStringValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestStringParameterValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/function/string_return_test.go b/function/string_return_test.go index 5e0db2260..08c867884 100644 --- a/function/string_return_test.go +++ b/function/string_return_test.go @@ -33,8 +33,6 @@ func TestStringReturnGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/applyresourcechange_test.go b/internal/fromproto5/applyresourcechange_test.go index 6aca21466..859181364 100644 --- a/internal/fromproto5/applyresourcechange_test.go +++ b/internal/fromproto5/applyresourcechange_test.go @@ -250,8 +250,6 @@ func TestApplyResourceChangeRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/arguments_data_test.go b/internal/fromproto5/arguments_data_test.go index cf5754adf..25d8c1bcb 100644 --- a/internal/fromproto5/arguments_data_test.go +++ b/internal/fromproto5/arguments_data_test.go @@ -689,8 +689,6 @@ func TestArgumentsData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3114,8 +3112,6 @@ func TestArgumentsData_ParameterValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/callfunction_test.go b/internal/fromproto5/callfunction_test.go index 3cde3f00a..214eebb3a 100644 --- a/internal/fromproto5/callfunction_test.go +++ b/internal/fromproto5/callfunction_test.go @@ -81,8 +81,6 @@ func TestCallFunctionRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/closeephemeralresource_test.go b/internal/fromproto5/closeephemeralresource_test.go index e9ba362ae..777d2c14b 100644 --- a/internal/fromproto5/closeephemeralresource_test.go +++ b/internal/fromproto5/closeephemeralresource_test.go @@ -82,8 +82,6 @@ func TestCloseEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/config_test.go b/internal/fromproto5/config_test.go index 60e5fc4b4..f252af7a3 100644 --- a/internal/fromproto5/config_test.go +++ b/internal/fromproto5/config_test.go @@ -103,8 +103,6 @@ func TestConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/configureprovider_test.go b/internal/fromproto5/configureprovider_test.go index f61f925a3..b653cd146 100644 --- a/internal/fromproto5/configureprovider_test.go +++ b/internal/fromproto5/configureprovider_test.go @@ -118,8 +118,6 @@ func TestConfigureProviderRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/dynamic_value_test.go b/internal/fromproto5/dynamic_value_test.go index a92d94445..a8aebd7b5 100644 --- a/internal/fromproto5/dynamic_value_test.go +++ b/internal/fromproto5/dynamic_value_test.go @@ -1498,8 +1498,6 @@ func TestDynamicValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/ephemeral_result_data_test.go b/internal/fromproto5/ephemeral_result_data_test.go index 40f2ebff5..0af6479bd 100644 --- a/internal/fromproto5/ephemeral_result_data_test.go +++ b/internal/fromproto5/ephemeral_result_data_test.go @@ -103,8 +103,6 @@ func TestEphemeralResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/getfunctions_test.go b/internal/fromproto5/getfunctions_test.go index 62d42aab8..9e26cbcef 100644 --- a/internal/fromproto5/getfunctions_test.go +++ b/internal/fromproto5/getfunctions_test.go @@ -31,8 +31,6 @@ func TestGetFunctionsRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/getmetadata_test.go b/internal/fromproto5/getmetadata_test.go index e92a5acef..adc450e1d 100644 --- a/internal/fromproto5/getmetadata_test.go +++ b/internal/fromproto5/getmetadata_test.go @@ -31,8 +31,6 @@ func TestGetMetadataRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/getproviderschema_test.go b/internal/fromproto5/getproviderschema_test.go index a9722d84d..754e68605 100644 --- a/internal/fromproto5/getproviderschema_test.go +++ b/internal/fromproto5/getproviderschema_test.go @@ -31,8 +31,6 @@ func TestGetProviderSchemaRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/importresourcestate_test.go b/internal/fromproto5/importresourcestate_test.go index ba58522af..39b5fdfa4 100644 --- a/internal/fromproto5/importresourcestate_test.go +++ b/internal/fromproto5/importresourcestate_test.go @@ -119,8 +119,6 @@ func TestImportResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/moveresourcestate_test.go b/internal/fromproto5/moveresourcestate_test.go index 3c8dd5181..2122edb75 100644 --- a/internal/fromproto5/moveresourcestate_test.go +++ b/internal/fromproto5/moveresourcestate_test.go @@ -165,8 +165,6 @@ func TestMoveResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/openephemeralresource_test.go b/internal/fromproto5/openephemeralresource_test.go index bd53e32d7..e84a5829c 100644 --- a/internal/fromproto5/openephemeralresource_test.go +++ b/internal/fromproto5/openephemeralresource_test.go @@ -127,8 +127,6 @@ func TestOpenEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/plan_test.go b/internal/fromproto5/plan_test.go index c447a86c9..686280fac 100644 --- a/internal/fromproto5/plan_test.go +++ b/internal/fromproto5/plan_test.go @@ -103,8 +103,6 @@ func TestPlan(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/planresourcechange_test.go b/internal/fromproto5/planresourcechange_test.go index 64dcad0f8..b223e0e59 100644 --- a/internal/fromproto5/planresourcechange_test.go +++ b/internal/fromproto5/planresourcechange_test.go @@ -262,8 +262,6 @@ func TestPlanResourceChangeRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/prepareproviderconfig_test.go b/internal/fromproto5/prepareproviderconfig_test.go index 3b10c7720..fc0f29a01 100644 --- a/internal/fromproto5/prepareproviderconfig_test.go +++ b/internal/fromproto5/prepareproviderconfig_test.go @@ -89,8 +89,6 @@ func TestValidateProviderConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/providermeta_test.go b/internal/fromproto5/providermeta_test.go index e6f1880cb..d7fcba82e 100644 --- a/internal/fromproto5/providermeta_test.go +++ b/internal/fromproto5/providermeta_test.go @@ -99,8 +99,6 @@ func TestProviderMeta(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/readdatasource_test.go b/internal/fromproto5/readdatasource_test.go index cbc054e2d..bcfc169ea 100644 --- a/internal/fromproto5/readdatasource_test.go +++ b/internal/fromproto5/readdatasource_test.go @@ -163,8 +163,6 @@ func TestReadDataSourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/readresource_test.go b/internal/fromproto5/readresource_test.go index fb19e9041..c58fc01cc 100644 --- a/internal/fromproto5/readresource_test.go +++ b/internal/fromproto5/readresource_test.go @@ -197,8 +197,6 @@ func TestReadResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/renewephemeralresource_test.go b/internal/fromproto5/renewephemeralresource_test.go index b61aed2ad..56b63d92a 100644 --- a/internal/fromproto5/renewephemeralresource_test.go +++ b/internal/fromproto5/renewephemeralresource_test.go @@ -82,8 +82,6 @@ func TestRenewEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/state_test.go b/internal/fromproto5/state_test.go index 4a374ff24..17a39f250 100644 --- a/internal/fromproto5/state_test.go +++ b/internal/fromproto5/state_test.go @@ -103,8 +103,6 @@ func TestState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/upgraderesourcestate_test.go b/internal/fromproto5/upgraderesourcestate_test.go index 6ecfe55d4..5cbd9aca8 100644 --- a/internal/fromproto5/upgraderesourcestate_test.go +++ b/internal/fromproto5/upgraderesourcestate_test.go @@ -86,8 +86,6 @@ func TestUpgradeResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/validatedatasourceconfig_test.go b/internal/fromproto5/validatedatasourceconfig_test.go index 7becf1f38..417d69945 100644 --- a/internal/fromproto5/validatedatasourceconfig_test.go +++ b/internal/fromproto5/validatedatasourceconfig_test.go @@ -91,8 +91,6 @@ func TestValidateDataSourceConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/validateephemeralresourceconfig_test.go b/internal/fromproto5/validateephemeralresourceconfig_test.go index bf4aec660..b1ec6662a 100644 --- a/internal/fromproto5/validateephemeralresourceconfig_test.go +++ b/internal/fromproto5/validateephemeralresourceconfig_test.go @@ -91,8 +91,6 @@ func TestValidateEphemeralResourceConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto5/validateresourcetypeconfig_test.go b/internal/fromproto5/validateresourcetypeconfig_test.go index 5c07807ed..dbc7dad1b 100644 --- a/internal/fromproto5/validateresourcetypeconfig_test.go +++ b/internal/fromproto5/validateresourcetypeconfig_test.go @@ -125,8 +125,6 @@ func TestValidateResourceTypeConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/applyresourcechange_test.go b/internal/fromproto6/applyresourcechange_test.go index fccbf619a..9f845412e 100644 --- a/internal/fromproto6/applyresourcechange_test.go +++ b/internal/fromproto6/applyresourcechange_test.go @@ -250,8 +250,6 @@ func TestApplyResourceChangeRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/arguments_data_test.go b/internal/fromproto6/arguments_data_test.go index 4a6f7f8b4..ad7a2115a 100644 --- a/internal/fromproto6/arguments_data_test.go +++ b/internal/fromproto6/arguments_data_test.go @@ -690,8 +690,6 @@ func TestArgumentsData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3115,8 +3113,6 @@ func TestArgumentsData_ParameterValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/callfunction_test.go b/internal/fromproto6/callfunction_test.go index e3bbd30fb..dd4c84540 100644 --- a/internal/fromproto6/callfunction_test.go +++ b/internal/fromproto6/callfunction_test.go @@ -81,8 +81,6 @@ func TestCallFunctionRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/closeephemeralresource_test.go b/internal/fromproto6/closeephemeralresource_test.go index dca9046c7..aab1a56a3 100644 --- a/internal/fromproto6/closeephemeralresource_test.go +++ b/internal/fromproto6/closeephemeralresource_test.go @@ -82,8 +82,6 @@ func TestCloseEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/config_test.go b/internal/fromproto6/config_test.go index d48be4755..d0504b6b8 100644 --- a/internal/fromproto6/config_test.go +++ b/internal/fromproto6/config_test.go @@ -103,8 +103,6 @@ func TestConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/configureprovider_test.go b/internal/fromproto6/configureprovider_test.go index 47a3d778a..f7215daae 100644 --- a/internal/fromproto6/configureprovider_test.go +++ b/internal/fromproto6/configureprovider_test.go @@ -118,8 +118,6 @@ func TestConfigureProviderRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/dynamic_value_test.go b/internal/fromproto6/dynamic_value_test.go index eba43543c..c41ac554c 100644 --- a/internal/fromproto6/dynamic_value_test.go +++ b/internal/fromproto6/dynamic_value_test.go @@ -1498,8 +1498,6 @@ func TestDynamicValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/ephemeral_result_data_test.go b/internal/fromproto6/ephemeral_result_data_test.go index 44396ee59..ac48f3f2b 100644 --- a/internal/fromproto6/ephemeral_result_data_test.go +++ b/internal/fromproto6/ephemeral_result_data_test.go @@ -103,8 +103,6 @@ func TestEphemeralResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/getfunctions_test.go b/internal/fromproto6/getfunctions_test.go index 9269a889b..3e62f1150 100644 --- a/internal/fromproto6/getfunctions_test.go +++ b/internal/fromproto6/getfunctions_test.go @@ -31,8 +31,6 @@ func TestGetFunctionsRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/getmetadata_test.go b/internal/fromproto6/getmetadata_test.go index 20944d614..5eed5f7fc 100644 --- a/internal/fromproto6/getmetadata_test.go +++ b/internal/fromproto6/getmetadata_test.go @@ -31,8 +31,6 @@ func TestGetMetadataRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/getproviderschema_test.go b/internal/fromproto6/getproviderschema_test.go index cd4c1bca3..020c96e10 100644 --- a/internal/fromproto6/getproviderschema_test.go +++ b/internal/fromproto6/getproviderschema_test.go @@ -31,8 +31,6 @@ func TestGetProviderSchemaRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/importresourcestate_test.go b/internal/fromproto6/importresourcestate_test.go index 6c72913f7..6b385bb1a 100644 --- a/internal/fromproto6/importresourcestate_test.go +++ b/internal/fromproto6/importresourcestate_test.go @@ -119,8 +119,6 @@ func TestImportResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/moveresourcestate_test.go b/internal/fromproto6/moveresourcestate_test.go index 3379a3b6e..881ab3a49 100644 --- a/internal/fromproto6/moveresourcestate_test.go +++ b/internal/fromproto6/moveresourcestate_test.go @@ -165,8 +165,6 @@ func TestMoveResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/openephemeralresource_test.go b/internal/fromproto6/openephemeralresource_test.go index beea040e4..a6535741e 100644 --- a/internal/fromproto6/openephemeralresource_test.go +++ b/internal/fromproto6/openephemeralresource_test.go @@ -127,8 +127,6 @@ func TestOpenEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/plan_test.go b/internal/fromproto6/plan_test.go index eb58c0caa..4b5ec495b 100644 --- a/internal/fromproto6/plan_test.go +++ b/internal/fromproto6/plan_test.go @@ -103,8 +103,6 @@ func TestPlan(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/planresourcechange_test.go b/internal/fromproto6/planresourcechange_test.go index 81901c514..af8ee025c 100644 --- a/internal/fromproto6/planresourcechange_test.go +++ b/internal/fromproto6/planresourcechange_test.go @@ -262,8 +262,6 @@ func TestPlanResourceChangeRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/providermeta_test.go b/internal/fromproto6/providermeta_test.go index 8b6501975..9e22f02c7 100644 --- a/internal/fromproto6/providermeta_test.go +++ b/internal/fromproto6/providermeta_test.go @@ -99,8 +99,6 @@ func TestProviderMeta(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/readdatasource_test.go b/internal/fromproto6/readdatasource_test.go index 08ef5124a..656d34e6a 100644 --- a/internal/fromproto6/readdatasource_test.go +++ b/internal/fromproto6/readdatasource_test.go @@ -163,8 +163,6 @@ func TestReadDataSourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/readresource_test.go b/internal/fromproto6/readresource_test.go index 03d6eea86..5ae9e1688 100644 --- a/internal/fromproto6/readresource_test.go +++ b/internal/fromproto6/readresource_test.go @@ -197,8 +197,6 @@ func TestReadResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/renewephemeralresource_test.go b/internal/fromproto6/renewephemeralresource_test.go index 02779157f..0460abf1b 100644 --- a/internal/fromproto6/renewephemeralresource_test.go +++ b/internal/fromproto6/renewephemeralresource_test.go @@ -82,8 +82,6 @@ func TestRenewEphemeralResourceRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/state_test.go b/internal/fromproto6/state_test.go index fe6382af4..ec81a9a48 100644 --- a/internal/fromproto6/state_test.go +++ b/internal/fromproto6/state_test.go @@ -103,8 +103,6 @@ func TestState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/upgraderesourcestate_test.go b/internal/fromproto6/upgraderesourcestate_test.go index f1b30efcd..a857a0eea 100644 --- a/internal/fromproto6/upgraderesourcestate_test.go +++ b/internal/fromproto6/upgraderesourcestate_test.go @@ -86,8 +86,6 @@ func TestUpgradeResourceStateRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/validatedatasourceconfig_test.go b/internal/fromproto6/validatedatasourceconfig_test.go index c6dd84466..9bf3404d7 100644 --- a/internal/fromproto6/validatedatasourceconfig_test.go +++ b/internal/fromproto6/validatedatasourceconfig_test.go @@ -91,8 +91,6 @@ func TestValidateDataSourceConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/validateephemeralresourceconfig_test.go b/internal/fromproto6/validateephemeralresourceconfig_test.go index 39d793335..093757252 100644 --- a/internal/fromproto6/validateephemeralresourceconfig_test.go +++ b/internal/fromproto6/validateephemeralresourceconfig_test.go @@ -91,8 +91,6 @@ func TestValidateEphemeralResourceConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/validateproviderconfig_test.go b/internal/fromproto6/validateproviderconfig_test.go index 96abd6dd9..2b8b872bc 100644 --- a/internal/fromproto6/validateproviderconfig_test.go +++ b/internal/fromproto6/validateproviderconfig_test.go @@ -89,8 +89,6 @@ func TestValidateProviderConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromproto6/validateresourceconfig_test.go b/internal/fromproto6/validateresourceconfig_test.go index f649a0d77..b28ea5267 100644 --- a/internal/fromproto6/validateresourceconfig_test.go +++ b/internal/fromproto6/validateresourceconfig_test.go @@ -125,8 +125,6 @@ func TestValidateResourceConfigRequest(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromtftypes/attribute_path_step_test.go b/internal/fromtftypes/attribute_path_step_test.go index 4e4a291fb..93086d738 100644 --- a/internal/fromtftypes/attribute_path_step_test.go +++ b/internal/fromtftypes/attribute_path_step_test.go @@ -57,8 +57,6 @@ func TestAttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromtftypes/attribute_path_test.go b/internal/fromtftypes/attribute_path_test.go index 8166c7be7..e650cfdef 100644 --- a/internal/fromtftypes/attribute_path_test.go +++ b/internal/fromtftypes/attribute_path_test.go @@ -182,8 +182,6 @@ func TestAttributePath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fromtftypes/value_test.go b/internal/fromtftypes/value_test.go index d633c8157..4775e1771 100644 --- a/internal/fromtftypes/value_test.go +++ b/internal/fromtftypes/value_test.go @@ -351,8 +351,6 @@ func TestValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschema/attribute_name_validation_test.go b/internal/fwschema/attribute_name_validation_test.go index accfb52b9..f07d7cfad 100644 --- a/internal/fwschema/attribute_name_validation_test.go +++ b/internal/fwschema/attribute_name_validation_test.go @@ -69,8 +69,6 @@ func TestIsReservedProviderAttributeName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -205,8 +203,6 @@ func TestIsReservedResourceAttributeName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +326,6 @@ func TestIsValidAttributeName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschema/schema_test.go b/internal/fwschema/schema_test.go index 89d2ee2a9..0e54405ee 100644 --- a/internal/fwschema/schema_test.go +++ b/internal/fwschema/schema_test.go @@ -170,8 +170,6 @@ func TestSchemaBlockPathExpressions(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -346,8 +344,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -521,8 +517,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_default_test.go b/internal/fwschemadata/data_default_test.go index d68208439..054021eb3 100644 --- a/internal/fwschemadata/data_default_test.go +++ b/internal/fwschemadata/data_default_test.go @@ -10389,8 +10389,6 @@ func TestDataDefault(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_get_at_path_test.go b/internal/fwschemadata/data_get_at_path_test.go index 4bb5b95b3..b1546f635 100644 --- a/internal/fwschemadata/data_get_at_path_test.go +++ b/internal/fwschemadata/data_get_at_path_test.go @@ -7338,7 +7338,6 @@ func TestDataGetAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_get_test.go b/internal/fwschemadata/data_get_test.go index 6528e985e..78d32a4dc 100644 --- a/internal/fwschemadata/data_get_test.go +++ b/internal/fwschemadata/data_get_test.go @@ -8189,7 +8189,6 @@ func TestDataGet(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_nullify_collection_blocks_test.go b/internal/fwschemadata/data_nullify_collection_blocks_test.go index 9eb2a4c9c..7a2de5f1b 100644 --- a/internal/fwschemadata/data_nullify_collection_blocks_test.go +++ b/internal/fwschemadata/data_nullify_collection_blocks_test.go @@ -950,8 +950,6 @@ func TestDataNullifyCollectionBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_path_exists_test.go b/internal/fwschemadata/data_path_exists_test.go index fd67033f6..b3f685b79 100644 --- a/internal/fwschemadata/data_path_exists_test.go +++ b/internal/fwschemadata/data_path_exists_test.go @@ -799,7 +799,6 @@ func TestDataPathExists(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_path_matches_test.go b/internal/fwschemadata/data_path_matches_test.go index abbe5be3a..b3a307528 100644 --- a/internal/fwschemadata/data_path_matches_test.go +++ b/internal/fwschemadata/data_path_matches_test.go @@ -1469,8 +1469,6 @@ func TestDataPathMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_reify_null_collection_blocks_test.go b/internal/fwschemadata/data_reify_null_collection_blocks_test.go index 1e7161a2f..50d0757a1 100644 --- a/internal/fwschemadata/data_reify_null_collection_blocks_test.go +++ b/internal/fwschemadata/data_reify_null_collection_blocks_test.go @@ -1194,8 +1194,6 @@ func TestDataReifyNullCollectionBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_set_at_path_test.go b/internal/fwschemadata/data_set_at_path_test.go index 13d7e878a..95a41fee9 100644 --- a/internal/fwschemadata/data_set_at_path_test.go +++ b/internal/fwschemadata/data_set_at_path_test.go @@ -3045,7 +3045,6 @@ func TestDataSetAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_set_test.go b/internal/fwschemadata/data_set_test.go index ce827faf9..995923187 100644 --- a/internal/fwschemadata/data_set_test.go +++ b/internal/fwschemadata/data_set_test.go @@ -279,7 +279,6 @@ func TestDataSet(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_valid_path_expression_test.go b/internal/fwschemadata/data_valid_path_expression_test.go index decef1271..13ef1489a 100644 --- a/internal/fwschemadata/data_valid_path_expression_test.go +++ b/internal/fwschemadata/data_valid_path_expression_test.go @@ -284,8 +284,6 @@ func TestDataValidPathExpression(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/data_value_test.go b/internal/fwschemadata/data_value_test.go index 10cdb9afb..a067e19c4 100644 --- a/internal/fwschemadata/data_value_test.go +++ b/internal/fwschemadata/data_value_test.go @@ -2362,7 +2362,6 @@ func TestDataValueAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/tftypes_value_test.go b/internal/fwschemadata/tftypes_value_test.go index 465745523..f9409f4d0 100644 --- a/internal/fwschemadata/tftypes_value_test.go +++ b/internal/fwschemadata/tftypes_value_test.go @@ -154,7 +154,6 @@ func TestCreateParentTerraformValue(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -493,7 +492,6 @@ func TestUpsertChildTerraformValue(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_bool_test.go b/internal/fwschemadata/value_semantic_equality_bool_test.go index 099e6dc68..1468951bf 100644 --- a/internal/fwschemadata/value_semantic_equality_bool_test.go +++ b/internal/fwschemadata/value_semantic_equality_bool_test.go @@ -108,8 +108,6 @@ func TestValueSemanticEqualityBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_dynamic_test.go b/internal/fwschemadata/value_semantic_equality_dynamic_test.go index 183b893c1..2cccd0ab6 100644 --- a/internal/fwschemadata/value_semantic_equality_dynamic_test.go +++ b/internal/fwschemadata/value_semantic_equality_dynamic_test.go @@ -184,8 +184,6 @@ func TestValueSemanticEqualityDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_float32_test.go b/internal/fwschemadata/value_semantic_equality_float32_test.go index 9af96709e..725650d6c 100644 --- a/internal/fwschemadata/value_semantic_equality_float32_test.go +++ b/internal/fwschemadata/value_semantic_equality_float32_test.go @@ -109,8 +109,6 @@ func TestValueSemanticEqualityFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_float64_test.go b/internal/fwschemadata/value_semantic_equality_float64_test.go index 009459118..821485077 100644 --- a/internal/fwschemadata/value_semantic_equality_float64_test.go +++ b/internal/fwschemadata/value_semantic_equality_float64_test.go @@ -108,8 +108,6 @@ func TestValueSemanticEqualityFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_int32_test.go b/internal/fwschemadata/value_semantic_equality_int32_test.go index 4c48b9ae0..ddc2d47a1 100644 --- a/internal/fwschemadata/value_semantic_equality_int32_test.go +++ b/internal/fwschemadata/value_semantic_equality_int32_test.go @@ -109,8 +109,6 @@ func TestValueSemanticEqualityInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_int64_test.go b/internal/fwschemadata/value_semantic_equality_int64_test.go index c8f35f581..f6f29cd4d 100644 --- a/internal/fwschemadata/value_semantic_equality_int64_test.go +++ b/internal/fwschemadata/value_semantic_equality_int64_test.go @@ -108,8 +108,6 @@ func TestValueSemanticEqualityInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_list_test.go b/internal/fwschemadata/value_semantic_equality_list_test.go index 4bb5ba3b6..01220af9e 100644 --- a/internal/fwschemadata/value_semantic_equality_list_test.go +++ b/internal/fwschemadata/value_semantic_equality_list_test.go @@ -638,8 +638,6 @@ func TestValueSemanticEqualityList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_map_test.go b/internal/fwschemadata/value_semantic_equality_map_test.go index f2c33edf0..01e163d2a 100644 --- a/internal/fwschemadata/value_semantic_equality_map_test.go +++ b/internal/fwschemadata/value_semantic_equality_map_test.go @@ -562,8 +562,6 @@ func TestValueSemanticEqualityMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_number_test.go b/internal/fwschemadata/value_semantic_equality_number_test.go index f912e09c4..060b959d1 100644 --- a/internal/fwschemadata/value_semantic_equality_number_test.go +++ b/internal/fwschemadata/value_semantic_equality_number_test.go @@ -109,8 +109,6 @@ func TestValueSemanticEqualityNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_object_test.go b/internal/fwschemadata/value_semantic_equality_object_test.go index c68f55638..fb1b1af84 100644 --- a/internal/fwschemadata/value_semantic_equality_object_test.go +++ b/internal/fwschemadata/value_semantic_equality_object_test.go @@ -658,8 +658,6 @@ func TestValueSemanticEqualityObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_set_test.go b/internal/fwschemadata/value_semantic_equality_set_test.go index d5fa25c85..0108eaddc 100644 --- a/internal/fwschemadata/value_semantic_equality_set_test.go +++ b/internal/fwschemadata/value_semantic_equality_set_test.go @@ -1006,8 +1006,6 @@ func TestValueSemanticEqualitySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_string_test.go b/internal/fwschemadata/value_semantic_equality_string_test.go index d705e9fbd..7e730cbe3 100644 --- a/internal/fwschemadata/value_semantic_equality_string_test.go +++ b/internal/fwschemadata/value_semantic_equality_string_test.go @@ -108,8 +108,6 @@ func TestValueSemanticEqualityString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwschemadata/value_semantic_equality_test.go b/internal/fwschemadata/value_semantic_equality_test.go index 81c85e335..64fe80962 100644 --- a/internal/fwschemadata/value_semantic_equality_test.go +++ b/internal/fwschemadata/value_semantic_equality_test.go @@ -1205,8 +1205,6 @@ func TestValueSemanticEquality(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/attribute_plan_modification_test.go b/internal/fwserver/attribute_plan_modification_test.go index f390311a9..a5c717964 100644 --- a/internal/fwserver/attribute_plan_modification_test.go +++ b/internal/fwserver/attribute_plan_modification_test.go @@ -3288,7 +3288,6 @@ func TestAttributeModifyPlan(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -3929,8 +3928,6 @@ func TestAttributePlanModifyBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -4565,8 +4562,6 @@ func TestAttributePlanModifyFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -5201,8 +5196,6 @@ func TestAttributePlanModifyFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -5837,8 +5830,6 @@ func TestAttributePlanModifyInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -6473,8 +6464,6 @@ func TestAttributePlanModifyInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -7127,8 +7116,6 @@ func TestAttributePlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -8108,8 +8095,6 @@ func TestAttributePlanModifyMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -8744,8 +8729,6 @@ func TestAttributePlanModifyNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -9943,8 +9926,6 @@ func TestAttributePlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -10597,8 +10578,6 @@ func TestAttributePlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -11233,8 +11212,6 @@ func TestAttributePlanModifyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -11869,8 +11846,6 @@ func TestAttributePlanModifyDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -13031,8 +13006,6 @@ func TestNestedAttributeObjectPlanModify(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/attribute_validation_test.go b/internal/fwserver/attribute_validation_test.go index 6f0fbc5ab..21f8349b5 100644 --- a/internal/fwserver/attribute_validation_test.go +++ b/internal/fwserver/attribute_validation_test.go @@ -1972,7 +1972,6 @@ func TestAttributeValidate(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -2211,8 +2210,6 @@ func TestAttributeValidateBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2441,8 +2438,6 @@ func TestAttributeValidateFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2671,8 +2666,6 @@ func TestAttributeValidateFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2901,8 +2894,6 @@ func TestAttributeValidateInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3131,8 +3122,6 @@ func TestAttributeValidateInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3376,8 +3365,6 @@ func TestAttributeValidateList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3642,8 +3629,6 @@ func TestAttributeValidateMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -3872,8 +3857,6 @@ func TestAttributeValidateNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -4148,8 +4131,6 @@ func TestAttributeValidateObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -4393,8 +4374,6 @@ func TestAttributeValidateSet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -4623,8 +4602,6 @@ func TestAttributeValidateString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -4853,8 +4830,6 @@ func TestAttributeValidateDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -5133,8 +5108,6 @@ func TestNestedAttributeObjectValidateObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/block_plan_modification_test.go b/internal/fwserver/block_plan_modification_test.go index 323ca8709..53f18579f 100644 --- a/internal/fwserver/block_plan_modification_test.go +++ b/internal/fwserver/block_plan_modification_test.go @@ -4024,7 +4024,6 @@ func TestBlockModifyPlan(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -4685,8 +4684,6 @@ func TestBlockPlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -5884,8 +5881,6 @@ func TestBlockPlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -6538,8 +6533,6 @@ func TestBlockPlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -7755,8 +7748,6 @@ func TestNestedBlockObjectPlanModify(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/block_validation_test.go b/internal/fwserver/block_validation_test.go index 40726f22f..2c6f3981d 100644 --- a/internal/fwserver/block_validation_test.go +++ b/internal/fwserver/block_validation_test.go @@ -1180,7 +1180,6 @@ func TestBlockValidate(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -1555,8 +1554,6 @@ func TestBlockValidateList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1849,8 +1846,6 @@ func TestBlockValidateObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2218,8 +2213,6 @@ func TestBlockValidateSet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2585,8 +2578,6 @@ func TestNestedBlockObjectValidateObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/schema_plan_modification_test.go b/internal/fwserver/schema_plan_modification_test.go index 3e00223ec..a3bc0ab5f 100644 --- a/internal/fwserver/schema_plan_modification_test.go +++ b/internal/fwserver/schema_plan_modification_test.go @@ -2425,7 +2425,6 @@ func TestSchemaModifyPlan(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/schema_semantic_equality_test.go b/internal/fwserver/schema_semantic_equality_test.go index b9ab45d92..65018998f 100644 --- a/internal/fwserver/schema_semantic_equality_test.go +++ b/internal/fwserver/schema_semantic_equality_test.go @@ -2300,8 +2300,6 @@ func TestSchemaSemanticEquality(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/schema_validation_test.go b/internal/fwserver/schema_validation_test.go index f896c3e08..81b0d4d37 100644 --- a/internal/fwserver/schema_validation_test.go +++ b/internal/fwserver/schema_validation_test.go @@ -172,7 +172,6 @@ func TestSchemaValidate(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_applyresourcechange_test.go b/internal/fwserver/server_applyresourcechange_test.go index 41ab43c77..ea4452244 100644 --- a/internal/fwserver/server_applyresourcechange_test.go +++ b/internal/fwserver/server_applyresourcechange_test.go @@ -1478,8 +1478,6 @@ func TestServerApplyResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_callfunction_test.go b/internal/fwserver/server_callfunction_test.go index dfb3ee1cb..e867c9069 100644 --- a/internal/fwserver/server_callfunction_test.go +++ b/internal/fwserver/server_callfunction_test.go @@ -380,8 +380,6 @@ func TestServerCallFunction(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_closeephemeralresource_test.go b/internal/fwserver/server_closeephemeralresource_test.go index 4bad0e620..3ffc19c86 100644 --- a/internal/fwserver/server_closeephemeralresource_test.go +++ b/internal/fwserver/server_closeephemeralresource_test.go @@ -185,8 +185,6 @@ func TestServerCloseEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_configureprovider_test.go b/internal/fwserver/server_configureprovider_test.go index f8dd1e9e0..96d5ac63a 100644 --- a/internal/fwserver/server_configureprovider_test.go +++ b/internal/fwserver/server_configureprovider_test.go @@ -230,8 +230,6 @@ func TestServerConfigureProvider(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_createresource_test.go b/internal/fwserver/server_createresource_test.go index 988a268c9..86bedcb8f 100644 --- a/internal/fwserver/server_createresource_test.go +++ b/internal/fwserver/server_createresource_test.go @@ -605,8 +605,6 @@ func TestServerCreateResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_deleteresource_test.go b/internal/fwserver/server_deleteresource_test.go index 95024d9a1..2042e2764 100644 --- a/internal/fwserver/server_deleteresource_test.go +++ b/internal/fwserver/server_deleteresource_test.go @@ -420,8 +420,6 @@ func TestServerDeleteResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_getfunctions_test.go b/internal/fwserver/server_getfunctions_test.go index 1df383710..1713183c6 100644 --- a/internal/fwserver/server_getfunctions_test.go +++ b/internal/fwserver/server_getfunctions_test.go @@ -199,8 +199,6 @@ func TestServerGetFunctions(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_getmetadata_test.go b/internal/fwserver/server_getmetadata_test.go index 532765e1a..8729f6dbd 100644 --- a/internal/fwserver/server_getmetadata_test.go +++ b/internal/fwserver/server_getmetadata_test.go @@ -647,8 +647,6 @@ func TestServerGetMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_getproviderschema_test.go b/internal/fwserver/server_getproviderschema_test.go index 43a0c9a4e..e5e17bc89 100644 --- a/internal/fwserver/server_getproviderschema_test.go +++ b/internal/fwserver/server_getproviderschema_test.go @@ -1223,8 +1223,6 @@ func TestServerGetProviderSchema(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_importresourcestate_test.go b/internal/fwserver/server_importresourcestate_test.go index d605ef3d9..0f8481eea 100644 --- a/internal/fwserver/server_importresourcestate_test.go +++ b/internal/fwserver/server_importresourcestate_test.go @@ -486,8 +486,6 @@ func TestServerImportResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_moveresourcestate_test.go b/internal/fwserver/server_moveresourcestate_test.go index 931b84a76..8e2445ba9 100644 --- a/internal/fwserver/server_moveresourcestate_test.go +++ b/internal/fwserver/server_moveresourcestate_test.go @@ -815,8 +815,6 @@ func TestServerMoveResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_openephemeralresource_test.go b/internal/fwserver/server_openephemeralresource_test.go index ec2649430..9f0365a92 100644 --- a/internal/fwserver/server_openephemeralresource_test.go +++ b/internal/fwserver/server_openephemeralresource_test.go @@ -381,8 +381,6 @@ func TestServerOpenEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_planresourcechange_test.go b/internal/fwserver/server_planresourcechange_test.go index 4e22b36c6..783fb2e51 100644 --- a/internal/fwserver/server_planresourcechange_test.go +++ b/internal/fwserver/server_planresourcechange_test.go @@ -705,7 +705,6 @@ func TestNormaliseRequiresReplace(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -6643,8 +6642,6 @@ func TestServerPlanResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -16258,8 +16255,6 @@ func TestServerPlanResourceChange_AttributeRoundtrip(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_readdatasource_test.go b/internal/fwserver/server_readdatasource_test.go index d2f91bd37..45334d43e 100644 --- a/internal/fwserver/server_readdatasource_test.go +++ b/internal/fwserver/server_readdatasource_test.go @@ -453,8 +453,6 @@ func TestServerReadDataSource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_readresource_test.go b/internal/fwserver/server_readresource_test.go index f6711551a..9f3aa7065 100644 --- a/internal/fwserver/server_readresource_test.go +++ b/internal/fwserver/server_readresource_test.go @@ -665,8 +665,6 @@ func TestServerReadResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_renewephemeralresource_test.go b/internal/fwserver/server_renewephemeralresource_test.go index 368a5aa87..8cc6e01a6 100644 --- a/internal/fwserver/server_renewephemeralresource_test.go +++ b/internal/fwserver/server_renewephemeralresource_test.go @@ -262,8 +262,6 @@ func TestServerRenewEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_updateresource_test.go b/internal/fwserver/server_updateresource_test.go index 5c0bb5c7d..4396e93f1 100644 --- a/internal/fwserver/server_updateresource_test.go +++ b/internal/fwserver/server_updateresource_test.go @@ -916,8 +916,6 @@ func TestServerUpdateResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_upgraderesourcestate_test.go b/internal/fwserver/server_upgraderesourcestate_test.go index 1e733874f..00ee46092 100644 --- a/internal/fwserver/server_upgraderesourcestate_test.go +++ b/internal/fwserver/server_upgraderesourcestate_test.go @@ -913,8 +913,6 @@ func TestServerUpgradeResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_validatedatasourceconfig_test.go b/internal/fwserver/server_validatedatasourceconfig_test.go index 6ff93062a..3b669dfcb 100644 --- a/internal/fwserver/server_validatedatasourceconfig_test.go +++ b/internal/fwserver/server_validatedatasourceconfig_test.go @@ -292,8 +292,6 @@ func TestServerValidateDataSourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_validateephemeralresourceconfig_test.go b/internal/fwserver/server_validateephemeralresourceconfig_test.go index 24cb08e70..0497cd7d1 100644 --- a/internal/fwserver/server_validateephemeralresourceconfig_test.go +++ b/internal/fwserver/server_validateephemeralresourceconfig_test.go @@ -292,8 +292,6 @@ func TestServerValidateEphemeralResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_validateproviderconfig_test.go b/internal/fwserver/server_validateproviderconfig_test.go index 49574e60c..b2d71483d 100644 --- a/internal/fwserver/server_validateproviderconfig_test.go +++ b/internal/fwserver/server_validateproviderconfig_test.go @@ -298,8 +298,6 @@ func TestServerValidateProviderConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwserver/server_validateresourceconfig_test.go b/internal/fwserver/server_validateresourceconfig_test.go index 489d6a234..59369e9df 100644 --- a/internal/fwserver/server_validateresourceconfig_test.go +++ b/internal/fwserver/server_validateresourceconfig_test.go @@ -384,8 +384,6 @@ func TestServerValidateResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwtype/missing_underlying_type_validation_test.go b/internal/fwtype/missing_underlying_type_validation_test.go index dea491b11..e8b5d3adb 100644 --- a/internal/fwtype/missing_underlying_type_validation_test.go +++ b/internal/fwtype/missing_underlying_type_validation_test.go @@ -2812,8 +2812,6 @@ func TestContainsMissingUnderlyingType(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/fwtype/static_collection_validation_test.go b/internal/fwtype/static_collection_validation_test.go index e7ea5e722..8000bc91a 100644 --- a/internal/fwtype/static_collection_validation_test.go +++ b/internal/fwtype/static_collection_validation_test.go @@ -933,7 +933,6 @@ func TestTypeContainsCollectionWithDynamic(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/privatestate/data_test.go b/internal/privatestate/data_test.go index ae40c2f8f..d1bce0f32 100644 --- a/internal/privatestate/data_test.go +++ b/internal/privatestate/data_test.go @@ -200,8 +200,6 @@ func TestData_Bytes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -431,8 +429,6 @@ func TestNewData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -538,8 +534,6 @@ func TestNewProviderData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -631,8 +625,6 @@ func TestProviderDataEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -693,8 +685,6 @@ func TestProviderData_GetKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -938,8 +928,6 @@ func TestProviderData_SetKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -977,8 +965,6 @@ func TestValidateProviderDataKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_applyresourcechange_test.go b/internal/proto5server/server_applyresourcechange_test.go index 92e0a1b24..54484786c 100644 --- a/internal/proto5server/server_applyresourcechange_test.go +++ b/internal/proto5server/server_applyresourcechange_test.go @@ -1416,8 +1416,6 @@ func TestServerApplyResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_callfunction_test.go b/internal/proto5server/server_callfunction_test.go index 17f119267..632e18f5a 100644 --- a/internal/proto5server/server_callfunction_test.go +++ b/internal/proto5server/server_callfunction_test.go @@ -235,8 +235,6 @@ func TestServerCallFunction(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_closeephemeralresource_test.go b/internal/proto5server/server_closeephemeralresource_test.go index 46d987d1d..6f575786f 100644 --- a/internal/proto5server/server_closeephemeralresource_test.go +++ b/internal/proto5server/server_closeephemeralresource_test.go @@ -112,8 +112,6 @@ func TestServerCloseEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_configureprovider_test.go b/internal/proto5server/server_configureprovider_test.go index f538af6b9..06d4df619 100644 --- a/internal/proto5server/server_configureprovider_test.go +++ b/internal/proto5server/server_configureprovider_test.go @@ -153,8 +153,6 @@ func TestServerConfigureProvider(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_getfunctions_test.go b/internal/proto5server/server_getfunctions_test.go index 07060e83f..ad8e4a04e 100644 --- a/internal/proto5server/server_getfunctions_test.go +++ b/internal/proto5server/server_getfunctions_test.go @@ -160,8 +160,6 @@ func TestServerGetFunctions(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_getmetadata_test.go b/internal/proto5server/server_getmetadata_test.go index 39d2985bd..9f8baf1fc 100644 --- a/internal/proto5server/server_getmetadata_test.go +++ b/internal/proto5server/server_getmetadata_test.go @@ -554,8 +554,6 @@ func TestServerGetMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_getproviderschema_test.go b/internal/proto5server/server_getproviderschema_test.go index 41a632391..590d87a62 100644 --- a/internal/proto5server/server_getproviderschema_test.go +++ b/internal/proto5server/server_getproviderschema_test.go @@ -865,8 +865,6 @@ func TestServerGetProviderSchema(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_importresourcestate_test.go b/internal/proto5server/server_importresourcestate_test.go index 8b6b3578e..268853c7d 100644 --- a/internal/proto5server/server_importresourcestate_test.go +++ b/internal/proto5server/server_importresourcestate_test.go @@ -233,8 +233,6 @@ func TestServerImportResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_moveresourcestate_test.go b/internal/proto5server/server_moveresourcestate_test.go index b558b573c..5b5e53c97 100644 --- a/internal/proto5server/server_moveresourcestate_test.go +++ b/internal/proto5server/server_moveresourcestate_test.go @@ -708,8 +708,6 @@ func TestServerMoveResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_openephemeralresource_test.go b/internal/proto5server/server_openephemeralresource_test.go index a4e7d2113..85e8e911e 100644 --- a/internal/proto5server/server_openephemeralresource_test.go +++ b/internal/proto5server/server_openephemeralresource_test.go @@ -249,8 +249,6 @@ func TestServerOpenEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_planresourcechange_test.go b/internal/proto5server/server_planresourcechange_test.go index ad16683fb..fc452f6af 100644 --- a/internal/proto5server/server_planresourcechange_test.go +++ b/internal/proto5server/server_planresourcechange_test.go @@ -1039,8 +1039,6 @@ func TestServerPlanResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_prepareproviderconfig_test.go b/internal/proto5server/server_prepareproviderconfig_test.go index 65ae74a28..945171a80 100644 --- a/internal/proto5server/server_prepareproviderconfig_test.go +++ b/internal/proto5server/server_prepareproviderconfig_test.go @@ -124,8 +124,6 @@ func TestServerPrepareProviderConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_readdatasource_test.go b/internal/proto5server/server_readdatasource_test.go index 538786bad..49bbe21af 100644 --- a/internal/proto5server/server_readdatasource_test.go +++ b/internal/proto5server/server_readdatasource_test.go @@ -286,8 +286,6 @@ func TestServerReadDataSource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_readresource_test.go b/internal/proto5server/server_readresource_test.go index 12a2604f3..8fbba4647 100644 --- a/internal/proto5server/server_readresource_test.go +++ b/internal/proto5server/server_readresource_test.go @@ -402,8 +402,6 @@ func TestServerReadResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_renewephemeralresource_test.go b/internal/proto5server/server_renewephemeralresource_test.go index 73a63f43b..651a7fc61 100644 --- a/internal/proto5server/server_renewephemeralresource_test.go +++ b/internal/proto5server/server_renewephemeralresource_test.go @@ -146,8 +146,6 @@ func TestServerRenewEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_upgraderesourcestate_test.go b/internal/proto5server/server_upgraderesourcestate_test.go index 727091014..6d391f831 100644 --- a/internal/proto5server/server_upgraderesourcestate_test.go +++ b/internal/proto5server/server_upgraderesourcestate_test.go @@ -267,8 +267,6 @@ func TestServerUpgradeResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_validatedatasourceconfig_test.go b/internal/proto5server/server_validatedatasourceconfig_test.go index 2166ec7ca..0eb8f5ad7 100644 --- a/internal/proto5server/server_validatedatasourceconfig_test.go +++ b/internal/proto5server/server_validatedatasourceconfig_test.go @@ -151,8 +151,6 @@ func TestServerValidateDataSourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_validateephemeralresourceconfig_test.go b/internal/proto5server/server_validateephemeralresourceconfig_test.go index 6505bbf53..7912087e4 100644 --- a/internal/proto5server/server_validateephemeralresourceconfig_test.go +++ b/internal/proto5server/server_validateephemeralresourceconfig_test.go @@ -149,8 +149,6 @@ func TestServerValidateEphemeralResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto5server/server_validateresourcetypeconfig_test.go b/internal/proto5server/server_validateresourcetypeconfig_test.go index 2799a82c1..0a647cfc2 100644 --- a/internal/proto5server/server_validateresourcetypeconfig_test.go +++ b/internal/proto5server/server_validateresourcetypeconfig_test.go @@ -149,8 +149,6 @@ func TestServerValidateResourceTypeConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_applyresourcechange_test.go b/internal/proto6server/server_applyresourcechange_test.go index 463371cb7..66c12933d 100644 --- a/internal/proto6server/server_applyresourcechange_test.go +++ b/internal/proto6server/server_applyresourcechange_test.go @@ -1416,8 +1416,6 @@ func TestServerApplyResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_callfunction_test.go b/internal/proto6server/server_callfunction_test.go index e4710ff26..15cfe6170 100644 --- a/internal/proto6server/server_callfunction_test.go +++ b/internal/proto6server/server_callfunction_test.go @@ -234,8 +234,6 @@ func TestServerCallFunction(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_closeephemeralresource_test.go b/internal/proto6server/server_closeephemeralresource_test.go index f1c732bcc..795343de1 100644 --- a/internal/proto6server/server_closeephemeralresource_test.go +++ b/internal/proto6server/server_closeephemeralresource_test.go @@ -112,8 +112,6 @@ func TestServerCloseEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_configureprovider_test.go b/internal/proto6server/server_configureprovider_test.go index 13ae83371..a3369846f 100644 --- a/internal/proto6server/server_configureprovider_test.go +++ b/internal/proto6server/server_configureprovider_test.go @@ -153,8 +153,6 @@ func TestServerConfigureProvider(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_getfunctions_test.go b/internal/proto6server/server_getfunctions_test.go index f503f7ef3..b15fc925b 100644 --- a/internal/proto6server/server_getfunctions_test.go +++ b/internal/proto6server/server_getfunctions_test.go @@ -160,8 +160,6 @@ func TestServerGetFunctions(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_getmetadata_test.go b/internal/proto6server/server_getmetadata_test.go index 5a2395f7e..b32933a65 100644 --- a/internal/proto6server/server_getmetadata_test.go +++ b/internal/proto6server/server_getmetadata_test.go @@ -554,8 +554,6 @@ func TestServerGetMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_getproviderschema_test.go b/internal/proto6server/server_getproviderschema_test.go index 24337c998..0b60159de 100644 --- a/internal/proto6server/server_getproviderschema_test.go +++ b/internal/proto6server/server_getproviderschema_test.go @@ -865,8 +865,6 @@ func TestServerGetProviderSchema(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_importresourcestate_test.go b/internal/proto6server/server_importresourcestate_test.go index 024756df2..8c67646f0 100644 --- a/internal/proto6server/server_importresourcestate_test.go +++ b/internal/proto6server/server_importresourcestate_test.go @@ -233,8 +233,6 @@ func TestServerImportResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_moveresourcestate_test.go b/internal/proto6server/server_moveresourcestate_test.go index 832bcc89d..22cf82154 100644 --- a/internal/proto6server/server_moveresourcestate_test.go +++ b/internal/proto6server/server_moveresourcestate_test.go @@ -708,8 +708,6 @@ func TestServerMoveResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_openephemeralresource_test.go b/internal/proto6server/server_openephemeralresource_test.go index 18167e499..718dd4d3b 100644 --- a/internal/proto6server/server_openephemeralresource_test.go +++ b/internal/proto6server/server_openephemeralresource_test.go @@ -249,8 +249,6 @@ func TestServerOpenEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_planresourcechange_test.go b/internal/proto6server/server_planresourcechange_test.go index 77bd54226..35b39c2e0 100644 --- a/internal/proto6server/server_planresourcechange_test.go +++ b/internal/proto6server/server_planresourcechange_test.go @@ -1038,8 +1038,6 @@ func TestServerPlanResourceChange(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_readdatasource_test.go b/internal/proto6server/server_readdatasource_test.go index 98a9d20cc..9808a58eb 100644 --- a/internal/proto6server/server_readdatasource_test.go +++ b/internal/proto6server/server_readdatasource_test.go @@ -286,8 +286,6 @@ func TestServerReadDataSource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_readresource_test.go b/internal/proto6server/server_readresource_test.go index 140b4be7b..7e2180008 100644 --- a/internal/proto6server/server_readresource_test.go +++ b/internal/proto6server/server_readresource_test.go @@ -402,8 +402,6 @@ func TestServerReadResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_renewephemeralresource_test.go b/internal/proto6server/server_renewephemeralresource_test.go index 2dfe3905b..1ed95d505 100644 --- a/internal/proto6server/server_renewephemeralresource_test.go +++ b/internal/proto6server/server_renewephemeralresource_test.go @@ -146,8 +146,6 @@ func TestServerRenewEphemeralResource(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_upgraderesourcestate_test.go b/internal/proto6server/server_upgraderesourcestate_test.go index f56758075..bcc4ac145 100644 --- a/internal/proto6server/server_upgraderesourcestate_test.go +++ b/internal/proto6server/server_upgraderesourcestate_test.go @@ -267,8 +267,6 @@ func TestServerUpgradeResourceState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_validatedataresourceconfig_test.go b/internal/proto6server/server_validatedataresourceconfig_test.go index 9da96df87..163191dee 100644 --- a/internal/proto6server/server_validatedataresourceconfig_test.go +++ b/internal/proto6server/server_validatedataresourceconfig_test.go @@ -151,8 +151,6 @@ func TestServerValidateDataResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_validateephemeralresourceconfig_test.go b/internal/proto6server/server_validateephemeralresourceconfig_test.go index 9e1932143..b6ca07e44 100644 --- a/internal/proto6server/server_validateephemeralresourceconfig_test.go +++ b/internal/proto6server/server_validateephemeralresourceconfig_test.go @@ -149,8 +149,6 @@ func TestServerValidateEphemeralResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_validateproviderconfig_test.go b/internal/proto6server/server_validateproviderconfig_test.go index 5d7cc7df6..216261867 100644 --- a/internal/proto6server/server_validateproviderconfig_test.go +++ b/internal/proto6server/server_validateproviderconfig_test.go @@ -124,8 +124,6 @@ func TestServerValidateProviderConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/proto6server/server_validateresourceconfig_test.go b/internal/proto6server/server_validateresourceconfig_test.go index 36ea3f91c..e094dd05a 100644 --- a/internal/proto6server/server_validateresourceconfig_test.go +++ b/internal/proto6server/server_validateresourceconfig_test.go @@ -150,8 +150,6 @@ func TestServerValidateResourceConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/build_value_test.go b/internal/reflect/build_value_test.go index 44d8b8f01..c943e6627 100644 --- a/internal/reflect/build_value_test.go +++ b/internal/reflect/build_value_test.go @@ -51,7 +51,6 @@ func TestBuildValue(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/helpers_test.go b/internal/reflect/helpers_test.go index ce6f35763..fcd9ee9be 100644 --- a/internal/reflect/helpers_test.go +++ b/internal/reflect/helpers_test.go @@ -237,7 +237,6 @@ func TestGetStructTags(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase t.Run(name, func(t *testing.T) { t.Parallel() @@ -336,7 +335,6 @@ func TestCommaSeparatedString(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() got := commaSeparatedString(test.input) @@ -360,7 +358,6 @@ func TestIsValidFieldName(t *testing.T) { "a_b": true, } for in, expected := range tests { - in, expected := in, expected t.Run(fmt.Sprintf("input=%q", in), func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/interfaces_test.go b/internal/reflect/interfaces_test.go index ae1022c59..c56f1ce96 100644 --- a/internal/reflect/interfaces_test.go +++ b/internal/reflect/interfaces_test.go @@ -260,7 +260,6 @@ func TestNewUnknownable(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -348,7 +347,6 @@ func TestFromUnknownable(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -400,7 +398,6 @@ func TestNewNullable(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -488,7 +485,6 @@ func TestFromNullable(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -550,7 +546,6 @@ func TestNewAttributeValue(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -864,7 +859,6 @@ func TestFromAttributeValue(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -919,7 +913,6 @@ func TestNewValueConverter(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -996,7 +989,6 @@ func TestFromValueCreator(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/into_test.go b/internal/reflect/into_test.go index 15e2b1048..151a8b14a 100644 --- a/internal/reflect/into_test.go +++ b/internal/reflect/into_test.go @@ -211,8 +211,6 @@ func TestInto_Slices(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/map_test.go b/internal/reflect/map_test.go index 4d57b451f..fc680841b 100644 --- a/internal/reflect/map_test.go +++ b/internal/reflect/map_test.go @@ -244,7 +244,6 @@ func TestFromMap(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/number_test.go b/internal/reflect/number_test.go index a7b8b49e2..97b6b3587 100644 --- a/internal/reflect/number_test.go +++ b/internal/reflect/number_test.go @@ -831,7 +831,6 @@ func TestFromInt(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() actualVal, diags := refl.FromInt(context.Background(), tc.typ, tc.val, path.Empty()) @@ -907,7 +906,6 @@ func TestFromUint(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() actualVal, diags := refl.FromUint(context.Background(), tc.typ, tc.val, path.Empty()) @@ -988,7 +986,6 @@ func TestFromFloat(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() actualVal, diags := refl.FromFloat(context.Background(), tc.typ, tc.val, path.Empty()) @@ -1069,7 +1066,6 @@ func TestFromBigFloat(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() actualVal, diags := refl.FromBigFloat(context.Background(), tc.typ, tc.val, path.Empty()) @@ -1145,7 +1141,6 @@ func TestFromBigInt(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() actualVal, diags := refl.FromBigInt(context.Background(), tc.typ, tc.val, path.Empty()) diff --git a/internal/reflect/outof_test.go b/internal/reflect/outof_test.go index ab618f7d0..0a24e5e7d 100644 --- a/internal/reflect/outof_test.go +++ b/internal/reflect/outof_test.go @@ -167,8 +167,6 @@ func TestFromValue_go_types(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/pointer_test.go b/internal/reflect/pointer_test.go index fdc1ddd71..e254c0fcd 100644 --- a/internal/reflect/pointer_test.go +++ b/internal/reflect/pointer_test.go @@ -160,7 +160,6 @@ func TestFromPointer(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/primitive_test.go b/internal/reflect/primitive_test.go index 729b42749..58074e2b1 100644 --- a/internal/reflect/primitive_test.go +++ b/internal/reflect/primitive_test.go @@ -136,7 +136,6 @@ func TestFromString(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -213,7 +212,6 @@ func TestFromBool(t *testing.T) { } for name, tc := range cases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/slice_test.go b/internal/reflect/slice_test.go index 41a8daa09..05e5fc2f4 100644 --- a/internal/reflect/slice_test.go +++ b/internal/reflect/slice_test.go @@ -388,7 +388,6 @@ func TestFromSlice(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/reflect/struct_test.go b/internal/reflect/struct_test.go index a79df6e24..fb382a180 100644 --- a/internal/reflect/struct_test.go +++ b/internal/reflect/struct_test.go @@ -395,8 +395,6 @@ func TestNewStruct_errors(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -2122,8 +2120,6 @@ func TestFromStruct_errors(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/applyresourcechange_test.go b/internal/toproto5/applyresourcechange_test.go index 64c84f7cc..85f8c99dd 100644 --- a/internal/toproto5/applyresourcechange_test.go +++ b/internal/toproto5/applyresourcechange_test.go @@ -158,8 +158,6 @@ func TestApplyResourceChangeResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/block_test.go b/internal/toproto5/block_test.go index 4618d862c..303474e56 100644 --- a/internal/toproto5/block_test.go +++ b/internal/toproto5/block_test.go @@ -551,7 +551,6 @@ func TestBlock(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/callfunction_test.go b/internal/toproto5/callfunction_test.go index 91c26725b..7c7f49a36 100644 --- a/internal/toproto5/callfunction_test.go +++ b/internal/toproto5/callfunction_test.go @@ -53,8 +53,6 @@ func TestCallFunctionResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/closeephemeralresource_test.go b/internal/toproto5/closeephemeralresource_test.go index f10ab23b1..12b2e1171 100644 --- a/internal/toproto5/closeephemeralresource_test.go +++ b/internal/toproto5/closeephemeralresource_test.go @@ -54,8 +54,6 @@ func TestCloseEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/config_test.go b/internal/toproto5/config_test.go index 5cff0d303..2574bcf6e 100644 --- a/internal/toproto5/config_test.go +++ b/internal/toproto5/config_test.go @@ -90,8 +90,6 @@ func TestConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/configureprovider_test.go b/internal/toproto5/configureprovider_test.go index 5ecdf930f..2d7a20d68 100644 --- a/internal/toproto5/configureprovider_test.go +++ b/internal/toproto5/configureprovider_test.go @@ -54,8 +54,6 @@ func TestConfigureProviderResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/datasourcemetadata_test.go b/internal/toproto5/datasourcemetadata_test.go index 882de7469..10324596e 100644 --- a/internal/toproto5/datasourcemetadata_test.go +++ b/internal/toproto5/datasourcemetadata_test.go @@ -31,8 +31,6 @@ func TestDataSourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/diagnostics_test.go b/internal/toproto5/diagnostics_test.go index 7e888cb19..f10c2c641 100644 --- a/internal/toproto5/diagnostics_test.go +++ b/internal/toproto5/diagnostics_test.go @@ -38,8 +38,6 @@ func TestDiagnosticSeverity(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -116,7 +114,6 @@ func TestDiagnostics(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/dynamic_value_test.go b/internal/toproto5/dynamic_value_test.go index 613a377f2..ee9dd1f69 100644 --- a/internal/toproto5/dynamic_value_test.go +++ b/internal/toproto5/dynamic_value_test.go @@ -1230,8 +1230,6 @@ func TestDynamicValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/ephemeral_result_data_test.go b/internal/toproto5/ephemeral_result_data_test.go index bcb082b21..4a303f016 100644 --- a/internal/toproto5/ephemeral_result_data_test.go +++ b/internal/toproto5/ephemeral_result_data_test.go @@ -90,8 +90,6 @@ func TestEphemeralResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/ephemeralresourcemetadata_test.go b/internal/toproto5/ephemeralresourcemetadata_test.go index 2e3e13731..81f6566d7 100644 --- a/internal/toproto5/ephemeralresourcemetadata_test.go +++ b/internal/toproto5/ephemeralresourcemetadata_test.go @@ -31,8 +31,6 @@ func TestEphemeralResourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/function_test.go b/internal/toproto5/function_test.go index 8f941c805..f29d0a9bb 100644 --- a/internal/toproto5/function_test.go +++ b/internal/toproto5/function_test.go @@ -215,8 +215,6 @@ func TestFunction(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +245,6 @@ func TestFunctionMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -465,8 +461,6 @@ func TestFunctionParameter(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -499,8 +493,6 @@ func TestFunctionReturn(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -539,8 +531,6 @@ func TestFunctionResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/getfunctions_test.go b/internal/toproto5/getfunctions_test.go index f90ed5a7b..844c03a38 100644 --- a/internal/toproto5/getfunctions_test.go +++ b/internal/toproto5/getfunctions_test.go @@ -221,8 +221,6 @@ func TestGetFunctionsResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/getmetadata_test.go b/internal/toproto5/getmetadata_test.go index f328d387e..a2d0c2bdc 100644 --- a/internal/toproto5/getmetadata_test.go +++ b/internal/toproto5/getmetadata_test.go @@ -173,8 +173,6 @@ func TestGetMetadataResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/getproviderschema_test.go b/internal/toproto5/getproviderschema_test.go index 104814f5d..ca293fa96 100644 --- a/internal/toproto5/getproviderschema_test.go +++ b/internal/toproto5/getproviderschema_test.go @@ -5010,8 +5010,6 @@ func TestGetProviderSchemaResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/importedresource_test.go b/internal/toproto5/importedresource_test.go index a1e9e4146..58a1e860b 100644 --- a/internal/toproto5/importedresource_test.go +++ b/internal/toproto5/importedresource_test.go @@ -199,8 +199,6 @@ func TestImportResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/moveresourcestate_test.go b/internal/toproto5/moveresourcestate_test.go index 76712ee64..36075c0bf 100644 --- a/internal/toproto5/moveresourcestate_test.go +++ b/internal/toproto5/moveresourcestate_test.go @@ -155,8 +155,6 @@ func TestMoveResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/openephemeralresource_test.go b/internal/toproto5/openephemeralresource_test.go index 582a1f90e..fe6cf04c4 100644 --- a/internal/toproto5/openephemeralresource_test.go +++ b/internal/toproto5/openephemeralresource_test.go @@ -199,8 +199,6 @@ func TestOpenEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/planresourcechange_test.go b/internal/toproto5/planresourcechange_test.go index d4ed9e674..05924b5b4 100644 --- a/internal/toproto5/planresourcechange_test.go +++ b/internal/toproto5/planresourcechange_test.go @@ -200,8 +200,6 @@ func TestPlanResourceChangeResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/prepareproviderconfig_test.go b/internal/toproto5/prepareproviderconfig_test.go index 46f5ea451..67668e5e4 100644 --- a/internal/toproto5/prepareproviderconfig_test.go +++ b/internal/toproto5/prepareproviderconfig_test.go @@ -134,8 +134,6 @@ func TestPrepareProviderConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/readdatasource_test.go b/internal/toproto5/readdatasource_test.go index bc39fd51a..8801eefe9 100644 --- a/internal/toproto5/readdatasource_test.go +++ b/internal/toproto5/readdatasource_test.go @@ -152,8 +152,6 @@ func TestReadDataSourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/readresource_test.go b/internal/toproto5/readresource_test.go index 582e7090a..2e9c549d3 100644 --- a/internal/toproto5/readresource_test.go +++ b/internal/toproto5/readresource_test.go @@ -187,8 +187,6 @@ func TestReadResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/renewephemeralresource_test.go b/internal/toproto5/renewephemeralresource_test.go index 975e297c8..a1c55bf03 100644 --- a/internal/toproto5/renewephemeralresource_test.go +++ b/internal/toproto5/renewephemeralresource_test.go @@ -102,8 +102,6 @@ func TestRenewEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/resourcemetadata_test.go b/internal/toproto5/resourcemetadata_test.go index d8572f227..a8a982977 100644 --- a/internal/toproto5/resourcemetadata_test.go +++ b/internal/toproto5/resourcemetadata_test.go @@ -31,8 +31,6 @@ func TestResourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/schema_attribute_test.go b/internal/toproto5/schema_attribute_test.go index 9b49ca736..cc52ebd92 100644 --- a/internal/toproto5/schema_attribute_test.go +++ b/internal/toproto5/schema_attribute_test.go @@ -369,7 +369,6 @@ func TestSchemaAttribute(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/schema_test.go b/internal/toproto5/schema_test.go index 30a0e82f1..587f0424c 100644 --- a/internal/toproto5/schema_test.go +++ b/internal/toproto5/schema_test.go @@ -523,7 +523,6 @@ func TestSchema(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/server_capabilities_test.go b/internal/toproto5/server_capabilities_test.go index 95eac4af6..bf78fd7d4 100644 --- a/internal/toproto5/server_capabilities_test.go +++ b/internal/toproto5/server_capabilities_test.go @@ -51,8 +51,6 @@ func TestServerCapabilities(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/state_test.go b/internal/toproto5/state_test.go index b9b514308..355ca35ce 100644 --- a/internal/toproto5/state_test.go +++ b/internal/toproto5/state_test.go @@ -90,8 +90,6 @@ func TestState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/upgraderesourcestate_test.go b/internal/toproto5/upgraderesourcestate_test.go index 42ff28515..d29b2f395 100644 --- a/internal/toproto5/upgraderesourcestate_test.go +++ b/internal/toproto5/upgraderesourcestate_test.go @@ -134,8 +134,6 @@ func TestUpgradeResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/validatedatasourceconfig_test.go b/internal/toproto5/validatedatasourceconfig_test.go index fe9001f84..7e0514a6f 100644 --- a/internal/toproto5/validatedatasourceconfig_test.go +++ b/internal/toproto5/validatedatasourceconfig_test.go @@ -54,8 +54,6 @@ func TestValidateDataSourceConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/validateephemeralresourceconfig_test.go b/internal/toproto5/validateephemeralresourceconfig_test.go index 0a2a939f3..a3c4c7dd6 100644 --- a/internal/toproto5/validateephemeralresourceconfig_test.go +++ b/internal/toproto5/validateephemeralresourceconfig_test.go @@ -54,8 +54,6 @@ func TestValidateEphemeralResourceConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto5/validateresourcetypeconfig_test.go b/internal/toproto5/validateresourcetypeconfig_test.go index 820a7f59a..8596f3f40 100644 --- a/internal/toproto5/validateresourcetypeconfig_test.go +++ b/internal/toproto5/validateresourcetypeconfig_test.go @@ -54,8 +54,6 @@ func TestValidateResourceTypeConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/applyresourcechange_test.go b/internal/toproto6/applyresourcechange_test.go index 9a4d1f886..5084841d1 100644 --- a/internal/toproto6/applyresourcechange_test.go +++ b/internal/toproto6/applyresourcechange_test.go @@ -157,8 +157,6 @@ func TestApplyResourceChangeResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/block_test.go b/internal/toproto6/block_test.go index 37369b503..e1c5784d3 100644 --- a/internal/toproto6/block_test.go +++ b/internal/toproto6/block_test.go @@ -551,7 +551,6 @@ func TestBlock(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/callfunction_test.go b/internal/toproto6/callfunction_test.go index 2f8df94d0..b7757a2eb 100644 --- a/internal/toproto6/callfunction_test.go +++ b/internal/toproto6/callfunction_test.go @@ -53,8 +53,6 @@ func TestCallFunctionResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/closeephemeralresource_test.go b/internal/toproto6/closeephemeralresource_test.go index cf9830dd0..05bd2cd1b 100644 --- a/internal/toproto6/closeephemeralresource_test.go +++ b/internal/toproto6/closeephemeralresource_test.go @@ -54,8 +54,6 @@ func TestCloseEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/config_test.go b/internal/toproto6/config_test.go index e8543200a..4cc350877 100644 --- a/internal/toproto6/config_test.go +++ b/internal/toproto6/config_test.go @@ -90,8 +90,6 @@ func TestConfig(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/configureprovider_test.go b/internal/toproto6/configureprovider_test.go index f8f999dbd..13b28959a 100644 --- a/internal/toproto6/configureprovider_test.go +++ b/internal/toproto6/configureprovider_test.go @@ -54,8 +54,6 @@ func TestConfigureProviderResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/datasourcemetadata_test.go b/internal/toproto6/datasourcemetadata_test.go index af81c1f80..583a8e7a1 100644 --- a/internal/toproto6/datasourcemetadata_test.go +++ b/internal/toproto6/datasourcemetadata_test.go @@ -31,8 +31,6 @@ func TestDataSourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/diagnostics_test.go b/internal/toproto6/diagnostics_test.go index d473131b0..7e3ec0313 100644 --- a/internal/toproto6/diagnostics_test.go +++ b/internal/toproto6/diagnostics_test.go @@ -38,8 +38,6 @@ func TestDiagnosticSeverity(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -116,7 +114,6 @@ func TestDiagnostics(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/dynamic_value_test.go b/internal/toproto6/dynamic_value_test.go index efe2b8ee2..766f6b022 100644 --- a/internal/toproto6/dynamic_value_test.go +++ b/internal/toproto6/dynamic_value_test.go @@ -1230,8 +1230,6 @@ func TestDynamicValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/ephemeral_result_data_test.go b/internal/toproto6/ephemeral_result_data_test.go index 18cb2aced..14705f5fe 100644 --- a/internal/toproto6/ephemeral_result_data_test.go +++ b/internal/toproto6/ephemeral_result_data_test.go @@ -90,8 +90,6 @@ func TestEphemeralResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/ephemeralresourcemetadata_test.go b/internal/toproto6/ephemeralresourcemetadata_test.go index c62b90797..d14a22605 100644 --- a/internal/toproto6/ephemeralresourcemetadata_test.go +++ b/internal/toproto6/ephemeralresourcemetadata_test.go @@ -31,8 +31,6 @@ func TestEphemeralResourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/function_test.go b/internal/toproto6/function_test.go index f831cbe6a..793ab5202 100644 --- a/internal/toproto6/function_test.go +++ b/internal/toproto6/function_test.go @@ -215,8 +215,6 @@ func TestFunction(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +245,6 @@ func TestFunctionMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -456,8 +452,6 @@ func TestFunctionParameter(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -490,8 +484,6 @@ func TestFunctionReturn(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -530,8 +522,6 @@ func TestFunctionResultData(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/getfunctions_test.go b/internal/toproto6/getfunctions_test.go index 8de74f894..c3ebbe79a 100644 --- a/internal/toproto6/getfunctions_test.go +++ b/internal/toproto6/getfunctions_test.go @@ -221,8 +221,6 @@ func TestGetFunctionsResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/getmetadata_test.go b/internal/toproto6/getmetadata_test.go index 40a6b05e7..fe02ebf1c 100644 --- a/internal/toproto6/getmetadata_test.go +++ b/internal/toproto6/getmetadata_test.go @@ -173,8 +173,6 @@ func TestGetMetadataResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/getproviderschema_test.go b/internal/toproto6/getproviderschema_test.go index 161ae67a3..1b3d1da19 100644 --- a/internal/toproto6/getproviderschema_test.go +++ b/internal/toproto6/getproviderschema_test.go @@ -5136,8 +5136,6 @@ func TestGetProviderSchemaResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/importedresource_test.go b/internal/toproto6/importedresource_test.go index ce89d34f9..248d0d437 100644 --- a/internal/toproto6/importedresource_test.go +++ b/internal/toproto6/importedresource_test.go @@ -199,8 +199,6 @@ func TestImportResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/moveresourcestate_test.go b/internal/toproto6/moveresourcestate_test.go index 8a40223ee..d5281c970 100644 --- a/internal/toproto6/moveresourcestate_test.go +++ b/internal/toproto6/moveresourcestate_test.go @@ -155,8 +155,6 @@ func TestMoveResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/openephemeralresource_test.go b/internal/toproto6/openephemeralresource_test.go index 734294018..4343c3e26 100644 --- a/internal/toproto6/openephemeralresource_test.go +++ b/internal/toproto6/openephemeralresource_test.go @@ -199,8 +199,6 @@ func TestOpenEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/planresourcechange_test.go b/internal/toproto6/planresourcechange_test.go index ad8376e16..376ec1f9b 100644 --- a/internal/toproto6/planresourcechange_test.go +++ b/internal/toproto6/planresourcechange_test.go @@ -200,8 +200,6 @@ func TestPlanResourceChangeResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/readdatasource_test.go b/internal/toproto6/readdatasource_test.go index 593452609..062e0e0ba 100644 --- a/internal/toproto6/readdatasource_test.go +++ b/internal/toproto6/readdatasource_test.go @@ -152,8 +152,6 @@ func TestReadDataSourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/readresource_test.go b/internal/toproto6/readresource_test.go index 46d928c31..18842699e 100644 --- a/internal/toproto6/readresource_test.go +++ b/internal/toproto6/readresource_test.go @@ -187,8 +187,6 @@ func TestReadResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/renewephemeralresource_test.go b/internal/toproto6/renewephemeralresource_test.go index 54c3b4f64..1491f3bc4 100644 --- a/internal/toproto6/renewephemeralresource_test.go +++ b/internal/toproto6/renewephemeralresource_test.go @@ -102,8 +102,6 @@ func TestRenewEphemeralResourceResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/resourcemetadata_test.go b/internal/toproto6/resourcemetadata_test.go index 17f9463e1..d4e561e72 100644 --- a/internal/toproto6/resourcemetadata_test.go +++ b/internal/toproto6/resourcemetadata_test.go @@ -31,8 +31,6 @@ func TestResourceMetadata(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/schema_attribute_test.go b/internal/toproto6/schema_attribute_test.go index 595694bb9..1eb83c0c0 100644 --- a/internal/toproto6/schema_attribute_test.go +++ b/internal/toproto6/schema_attribute_test.go @@ -437,7 +437,6 @@ func TestSchemaAttribute(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/schema_test.go b/internal/toproto6/schema_test.go index e3888b639..50d203c61 100644 --- a/internal/toproto6/schema_test.go +++ b/internal/toproto6/schema_test.go @@ -627,7 +627,6 @@ func TestSchema(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/server_capabilities_test.go b/internal/toproto6/server_capabilities_test.go index a9e6955fe..557db6c32 100644 --- a/internal/toproto6/server_capabilities_test.go +++ b/internal/toproto6/server_capabilities_test.go @@ -51,8 +51,6 @@ func TestServerCapabilities(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/state_test.go b/internal/toproto6/state_test.go index 70f36ce08..0316e3524 100644 --- a/internal/toproto6/state_test.go +++ b/internal/toproto6/state_test.go @@ -90,8 +90,6 @@ func TestState(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/upgraderesourcestate_test.go b/internal/toproto6/upgraderesourcestate_test.go index 70928db44..d31589d55 100644 --- a/internal/toproto6/upgraderesourcestate_test.go +++ b/internal/toproto6/upgraderesourcestate_test.go @@ -134,8 +134,6 @@ func TestUpgradeResourceStateResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/validatedatasourceconfig_test.go b/internal/toproto6/validatedatasourceconfig_test.go index 879b6982d..460807eb6 100644 --- a/internal/toproto6/validatedatasourceconfig_test.go +++ b/internal/toproto6/validatedatasourceconfig_test.go @@ -54,8 +54,6 @@ func TestValidateDataSourceConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/validateephemeralresourceconfig_test.go b/internal/toproto6/validateephemeralresourceconfig_test.go index a088f2b88..3b41fdf1d 100644 --- a/internal/toproto6/validateephemeralresourceconfig_test.go +++ b/internal/toproto6/validateephemeralresourceconfig_test.go @@ -54,8 +54,6 @@ func TestValidateEphemeralResourceConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/validateproviderconfig_test.go b/internal/toproto6/validateproviderconfig_test.go index 8f8c2ba90..ffe9adb93 100644 --- a/internal/toproto6/validateproviderconfig_test.go +++ b/internal/toproto6/validateproviderconfig_test.go @@ -134,8 +134,6 @@ func TestValidateProviderConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/toproto6/validateresourceconfig_test.go b/internal/toproto6/validateresourceconfig_test.go index 783487a97..c673ad911 100644 --- a/internal/toproto6/validateresourceconfig_test.go +++ b/internal/toproto6/validateresourceconfig_test.go @@ -54,8 +54,6 @@ func TestValidateResourceConfigResponse(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/totftypes/attribute_path_step_test.go b/internal/totftypes/attribute_path_step_test.go index f5070953b..796ec9b94 100644 --- a/internal/totftypes/attribute_path_step_test.go +++ b/internal/totftypes/attribute_path_step_test.go @@ -48,8 +48,6 @@ func TestAttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/totftypes/attribute_path_test.go b/internal/totftypes/attribute_path_test.go index eb618ca34..f0b957c1d 100644 --- a/internal/totftypes/attribute_path_test.go +++ b/internal/totftypes/attribute_path_test.go @@ -52,8 +52,6 @@ func TestAttributePath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/internal/totftypes/attribute_paths_test.go b/internal/totftypes/attribute_paths_test.go index b8daf3c06..d23901425 100644 --- a/internal/totftypes/attribute_paths_test.go +++ b/internal/totftypes/attribute_paths_test.go @@ -87,8 +87,6 @@ func TestAttributePaths(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_attribute_name_exact_test.go b/path/expression_step_attribute_name_exact_test.go index 46ec2f278..379f75e5b 100644 --- a/path/expression_step_attribute_name_exact_test.go +++ b/path/expression_step_attribute_name_exact_test.go @@ -47,8 +47,6 @@ func TestExpressionStepAttributeNameExactEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestExpressionStepAttributeNameExactMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -125,8 +121,6 @@ func TestExpressionStepAttributeNameExactString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_int_any_test.go b/path/expression_step_element_key_int_any_test.go index 3308ad4b9..a8752d6ea 100644 --- a/path/expression_step_element_key_int_any_test.go +++ b/path/expression_step_element_key_int_any_test.go @@ -47,8 +47,6 @@ func TestExpressionStepElementKeyIntAnyEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -92,8 +90,6 @@ func TestExpressionStepElementKeyIntAnyMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -120,8 +116,6 @@ func TestExpressionStepElementKeyIntAnyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_int_exact_test.go b/path/expression_step_element_key_int_exact_test.go index 7ae70ce20..f9c24c740 100644 --- a/path/expression_step_element_key_int_exact_test.go +++ b/path/expression_step_element_key_int_exact_test.go @@ -52,8 +52,6 @@ func TestExpressionStepElementKeyIntExactEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -102,8 +100,6 @@ func TestExpressionStepElementKeyIntExactMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -130,8 +126,6 @@ func TestExpressionStepElementKeyIntExactString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_string_any_test.go b/path/expression_step_element_key_string_any_test.go index 7af02ae70..c7fa43f1f 100644 --- a/path/expression_step_element_key_string_any_test.go +++ b/path/expression_step_element_key_string_any_test.go @@ -47,8 +47,6 @@ func TestExpressionStepElementKeyStringAnyEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -92,8 +90,6 @@ func TestExpressionStepElementKeyStringAnyMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -120,8 +116,6 @@ func TestExpressionStepElementKeyStringAnyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_string_exact_test.go b/path/expression_step_element_key_string_exact_test.go index 16a935045..ec2da5920 100644 --- a/path/expression_step_element_key_string_exact_test.go +++ b/path/expression_step_element_key_string_exact_test.go @@ -47,8 +47,6 @@ func TestExpressionStepElementKeyStringExactEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestExpressionStepElementKeyStringExactMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -129,8 +125,6 @@ func TestExpressionStepElementKeyStringExactString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_value_any_test.go b/path/expression_step_element_key_value_any_test.go index 78ee79e56..ae4ef52fe 100644 --- a/path/expression_step_element_key_value_any_test.go +++ b/path/expression_step_element_key_value_any_test.go @@ -47,8 +47,6 @@ func TestExpressionStepElementKeyValueAnyEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -92,8 +90,6 @@ func TestExpressionStepElementKeyValueAnyMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -120,8 +116,6 @@ func TestExpressionStepElementKeyValueAnyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_element_key_value_exact_test.go b/path/expression_step_element_key_value_exact_test.go index 136965c4f..c12fa0bd6 100644 --- a/path/expression_step_element_key_value_exact_test.go +++ b/path/expression_step_element_key_value_exact_test.go @@ -48,8 +48,6 @@ func TestExpressionStepElementKeyValueExactEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -98,8 +96,6 @@ func TestExpressionStepElementKeyValueExactMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -179,8 +175,6 @@ func TestExpressionStepElementKeyValueExactString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_step_parent_test.go b/path/expression_step_parent_test.go index 044f55ee2..496a98e09 100644 --- a/path/expression_step_parent_test.go +++ b/path/expression_step_parent_test.go @@ -47,8 +47,6 @@ func TestExpressionStepParentEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -92,8 +90,6 @@ func TestExpressionStepParentMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -120,8 +116,6 @@ func TestExpressionStepParentString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_steps_test.go b/path/expression_steps_test.go index 0e5fa3e97..02cb01d80 100644 --- a/path/expression_steps_test.go +++ b/path/expression_steps_test.go @@ -54,8 +54,6 @@ func TestExpressionStepsAppend(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestExpressionStepsCopy(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +296,6 @@ func TestExpressionStepsEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -364,8 +358,6 @@ func TestExpressionStepsLastStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -652,8 +644,6 @@ func TestExpressionStepsMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1068,8 +1058,6 @@ func TestExpressionStepsMatchesParent(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1132,8 +1120,6 @@ func TestExpressionStepsNextStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1253,8 +1239,6 @@ func TestExpressionStepsResolve(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1394,8 +1378,6 @@ func TestExpressionStepsString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expression_test.go b/path/expression_test.go index 982714a65..70664f5a1 100644 --- a/path/expression_test.go +++ b/path/expression_test.go @@ -30,8 +30,6 @@ func TestExpressionAtAnyListIndex(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -62,8 +60,6 @@ func TestExpressionAtAnyMapKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -94,8 +90,6 @@ func TestExpressionAtAnySetValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -129,8 +123,6 @@ func TestExpressionAtListIndex(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +156,6 @@ func TestExpressionAtMapKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -199,8 +189,6 @@ func TestExpressionAtName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -231,8 +219,6 @@ func TestExpressionAtParent(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -266,8 +252,6 @@ func TestExpressionAtSetValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -298,8 +282,6 @@ func TestExpressionCopy(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -348,8 +330,6 @@ func TestExpressionEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -493,8 +473,6 @@ func TestExpressionMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -698,8 +676,6 @@ func TestExpressionMatchesParent(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -743,8 +719,6 @@ func TestExpressionMerge(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -829,8 +803,6 @@ func TestExpressionMergeExpressions(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -871,8 +843,6 @@ func TestExpressionResolve(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -922,8 +892,6 @@ func TestExpressionSteps(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1011,8 +979,6 @@ func TestExpressionString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/expressions_test.go b/path/expressions_test.go index 6aca104f4..92b3060f2 100644 --- a/path/expressions_test.go +++ b/path/expressions_test.go @@ -83,8 +83,6 @@ func TestExpressionsAppend(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -210,8 +208,6 @@ func TestExpressionsContains(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -347,8 +343,6 @@ func TestExpressionsMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +399,6 @@ func TestExpressionsString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_step_attribute_name_test.go b/path/path_step_attribute_name_test.go index 5e5a0c215..780c7ee85 100644 --- a/path/path_step_attribute_name_test.go +++ b/path/path_step_attribute_name_test.go @@ -47,8 +47,6 @@ func TestPathStepAttributeNameEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -75,8 +73,6 @@ func TestPathStepAttributeNameExpressionStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -103,8 +99,6 @@ func TestPathStepAttributeNameString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_step_element_key_int_test.go b/path/path_step_element_key_int_test.go index 1599cd263..ec2601714 100644 --- a/path/path_step_element_key_int_test.go +++ b/path/path_step_element_key_int_test.go @@ -47,8 +47,6 @@ func TestPathStepElementKeyIntEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -75,8 +73,6 @@ func TestPathStepElementKeyIntExpressionStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -103,8 +99,6 @@ func TestPathStepElementKeyIntString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_step_element_key_string_test.go b/path/path_step_element_key_string_test.go index 222394e5a..4a80a038e 100644 --- a/path/path_step_element_key_string_test.go +++ b/path/path_step_element_key_string_test.go @@ -47,8 +47,6 @@ func TestPathStepElementKeyStringEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -75,8 +73,6 @@ func TestPathStepElementKeyStringExpressionStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +103,6 @@ func TestPathStepElementKeyStringString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_step_element_key_value_test.go b/path/path_step_element_key_value_test.go index 4039df817..d7e8af659 100644 --- a/path/path_step_element_key_value_test.go +++ b/path/path_step_element_key_value_test.go @@ -53,8 +53,6 @@ func TestPathStepElementKeyValueEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -81,8 +79,6 @@ func TestPathStepElementKeyValueExpressionStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -162,8 +158,6 @@ func TestPathStepElementKeyValueString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_steps_test.go b/path/path_steps_test.go index 3a46e7fb9..2e3f1e604 100644 --- a/path/path_steps_test.go +++ b/path/path_steps_test.go @@ -54,8 +54,6 @@ func TestPathStepsAppend(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestPathStepsCopy(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +296,6 @@ func TestPathStepsEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +344,6 @@ func TestPathStepsExpressionSteps(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -414,8 +406,6 @@ func TestPathStepsLastStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -482,8 +472,6 @@ func TestPathStepsNextStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -627,8 +615,6 @@ func TestPathStepsString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/path_test.go b/path/path_test.go index 7742e4335..80155d06a 100644 --- a/path/path_test.go +++ b/path/path_test.go @@ -38,8 +38,6 @@ func TestPathAtListIndex(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -78,8 +76,6 @@ func TestPathAtTupleIndex(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -118,8 +114,6 @@ func TestPathAtMapKey(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -158,8 +152,6 @@ func TestPathAtName(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -198,8 +190,6 @@ func TestPathAtSetValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestPathCopy(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -289,8 +277,6 @@ func TestPathEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -321,8 +307,6 @@ func TestPathExpression(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -357,8 +341,6 @@ func TestPathParentPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -398,8 +380,6 @@ func TestPathSteps(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -491,8 +471,6 @@ func TestPathString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/path/paths_test.go b/path/paths_test.go index 78a9d3561..a7ff2a422 100644 --- a/path/paths_test.go +++ b/path/paths_test.go @@ -83,8 +83,6 @@ func TestPathsAppend(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -203,8 +201,6 @@ func TestPathsContains(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -261,8 +257,6 @@ func TestPathsString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/bool_attribute_test.go b/provider/metaschema/bool_attribute_test.go index 50b3e06bb..f679fc1a5 100644 --- a/provider/metaschema/bool_attribute_test.go +++ b/provider/metaschema/bool_attribute_test.go @@ -55,8 +55,6 @@ func TestBoolAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestBoolAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -132,8 +128,6 @@ func TestBoolAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -166,8 +160,6 @@ func TestBoolAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -200,8 +192,6 @@ func TestBoolAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestBoolAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +250,6 @@ func TestBoolAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +282,6 @@ func TestBoolAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +314,6 @@ func TestBoolAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +340,6 @@ func TestBoolAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +366,6 @@ func TestBoolAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/float64_attribute_test.go b/provider/metaschema/float64_attribute_test.go index f6f5ebd7f..8a73c9225 100644 --- a/provider/metaschema/float64_attribute_test.go +++ b/provider/metaschema/float64_attribute_test.go @@ -55,8 +55,6 @@ func TestFloat64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestFloat64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -132,8 +128,6 @@ func TestFloat64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -166,8 +160,6 @@ func TestFloat64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -200,8 +192,6 @@ func TestFloat64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestFloat64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +250,6 @@ func TestFloat64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +282,6 @@ func TestFloat64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +314,6 @@ func TestFloat64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +340,6 @@ func TestFloat64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +366,6 @@ func TestFloat64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/int64_attribute_test.go b/provider/metaschema/int64_attribute_test.go index 2aa4d585e..69439d021 100644 --- a/provider/metaschema/int64_attribute_test.go +++ b/provider/metaschema/int64_attribute_test.go @@ -55,8 +55,6 @@ func TestInt64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestInt64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -132,8 +128,6 @@ func TestInt64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -166,8 +160,6 @@ func TestInt64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -200,8 +192,6 @@ func TestInt64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestInt64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +250,6 @@ func TestInt64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +282,6 @@ func TestInt64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +314,6 @@ func TestInt64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +340,6 @@ func TestInt64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +366,6 @@ func TestInt64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/list_attribute_test.go b/provider/metaschema/list_attribute_test.go index 424c1d602..93f213ce0 100644 --- a/provider/metaschema/list_attribute_test.go +++ b/provider/metaschema/list_attribute_test.go @@ -58,8 +58,6 @@ func TestListAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -100,8 +98,6 @@ func TestListAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +136,6 @@ func TestListAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -174,8 +168,6 @@ func TestListAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -208,8 +200,6 @@ func TestListAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -242,8 +232,6 @@ func TestListAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -270,8 +258,6 @@ func TestListAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -304,8 +290,6 @@ func TestListAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -338,8 +322,6 @@ func TestListAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -366,8 +348,6 @@ func TestListAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -394,8 +374,6 @@ func TestListAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -461,8 +439,6 @@ func TestListAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/list_nested_attribute_test.go b/provider/metaschema/list_nested_attribute_test.go index c2aeae811..1c3576a30 100644 --- a/provider/metaschema/list_nested_attribute_test.go +++ b/provider/metaschema/list_nested_attribute_test.go @@ -83,8 +83,6 @@ func TestListNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -131,8 +129,6 @@ func TestListNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -222,8 +218,6 @@ func TestListNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +256,6 @@ func TestListNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -302,8 +294,6 @@ func TestListNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +330,6 @@ func TestListNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +374,6 @@ func TestListNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -420,8 +406,6 @@ func TestListNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -460,8 +444,6 @@ func TestListNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -500,8 +482,6 @@ func TestListNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -534,8 +514,6 @@ func TestListNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -562,8 +540,6 @@ func TestListNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/map_attribute_test.go b/provider/metaschema/map_attribute_test.go index 52ee19318..7d137ef1d 100644 --- a/provider/metaschema/map_attribute_test.go +++ b/provider/metaschema/map_attribute_test.go @@ -58,8 +58,6 @@ func TestMapAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -100,8 +98,6 @@ func TestMapAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +136,6 @@ func TestMapAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -174,8 +168,6 @@ func TestMapAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -208,8 +200,6 @@ func TestMapAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -242,8 +232,6 @@ func TestMapAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -270,8 +258,6 @@ func TestMapAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -304,8 +290,6 @@ func TestMapAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -338,8 +322,6 @@ func TestMapAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -366,8 +348,6 @@ func TestMapAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -394,8 +374,6 @@ func TestMapAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -461,8 +439,6 @@ func TestMapAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/map_nested_attribute_test.go b/provider/metaschema/map_nested_attribute_test.go index 88eb68b26..99c5ae558 100644 --- a/provider/metaschema/map_nested_attribute_test.go +++ b/provider/metaschema/map_nested_attribute_test.go @@ -83,8 +83,6 @@ func TestMapNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -131,8 +129,6 @@ func TestMapNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -222,8 +218,6 @@ func TestMapNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +256,6 @@ func TestMapNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -302,8 +294,6 @@ func TestMapNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +330,6 @@ func TestMapNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +374,6 @@ func TestMapNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -420,8 +406,6 @@ func TestMapNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -460,8 +444,6 @@ func TestMapNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -500,8 +482,6 @@ func TestMapNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -534,8 +514,6 @@ func TestMapNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -562,8 +540,6 @@ func TestMapNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/nested_attribute_object_test.go b/provider/metaschema/nested_attribute_object_test.go index c9ca5a210..3ea0c0ac1 100644 --- a/provider/metaschema/nested_attribute_object_test.go +++ b/provider/metaschema/nested_attribute_object_test.go @@ -79,8 +79,6 @@ func TestNestedAttributeObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -144,8 +142,6 @@ func TestNestedAttributeObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -184,8 +180,6 @@ func TestNestedAttributeObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -226,8 +220,6 @@ func TestNestedAttributeObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/number_attribute_test.go b/provider/metaschema/number_attribute_test.go index 588dd4e0b..676db8e1b 100644 --- a/provider/metaschema/number_attribute_test.go +++ b/provider/metaschema/number_attribute_test.go @@ -55,8 +55,6 @@ func TestNumberAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestNumberAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -132,8 +128,6 @@ func TestNumberAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -166,8 +160,6 @@ func TestNumberAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -200,8 +192,6 @@ func TestNumberAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestNumberAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +250,6 @@ func TestNumberAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +282,6 @@ func TestNumberAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +314,6 @@ func TestNumberAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +340,6 @@ func TestNumberAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +366,6 @@ func TestNumberAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/object_attribute_test.go b/provider/metaschema/object_attribute_test.go index f439faf0a..6b3bb4479 100644 --- a/provider/metaschema/object_attribute_test.go +++ b/provider/metaschema/object_attribute_test.go @@ -64,8 +64,6 @@ func TestObjectAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -106,8 +104,6 @@ func TestObjectAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +142,6 @@ func TestObjectAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +174,6 @@ func TestObjectAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -214,8 +206,6 @@ func TestObjectAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +238,6 @@ func TestObjectAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -276,8 +264,6 @@ func TestObjectAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -310,8 +296,6 @@ func TestObjectAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -344,8 +328,6 @@ func TestObjectAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -372,8 +354,6 @@ func TestObjectAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -400,8 +380,6 @@ func TestObjectAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -469,8 +447,6 @@ func TestObjectAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/schema_test.go b/provider/metaschema/schema_test.go index f4b64875f..7460f8016 100644 --- a/provider/metaschema/schema_test.go +++ b/provider/metaschema/schema_test.go @@ -82,8 +82,6 @@ func TestSchemaApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -223,7 +221,6 @@ func TestSchemaAttributeAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -325,7 +322,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -383,8 +379,6 @@ func TestSchemaGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -411,8 +405,6 @@ func TestSchemaGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -443,8 +435,6 @@ func TestSchemaGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -475,8 +465,6 @@ func TestSchemaGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -507,8 +495,6 @@ func TestSchemaGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -539,8 +525,6 @@ func TestSchemaGetVersion(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -575,8 +559,6 @@ func TestSchemaType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -683,8 +665,6 @@ func TestSchemaTypeAtPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -783,8 +763,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -840,8 +818,6 @@ func TestSchemaValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -945,8 +921,6 @@ func TestSchemaValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/set_attribute_test.go b/provider/metaschema/set_attribute_test.go index 620209b6f..975b3b719 100644 --- a/provider/metaschema/set_attribute_test.go +++ b/provider/metaschema/set_attribute_test.go @@ -58,8 +58,6 @@ func TestSetAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -100,8 +98,6 @@ func TestSetAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +136,6 @@ func TestSetAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -174,8 +168,6 @@ func TestSetAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -208,8 +200,6 @@ func TestSetAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -242,8 +232,6 @@ func TestSetAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -270,8 +258,6 @@ func TestSetAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -304,8 +290,6 @@ func TestSetAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -338,8 +322,6 @@ func TestSetAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -366,8 +348,6 @@ func TestSetAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -394,8 +374,6 @@ func TestSetAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -461,8 +439,6 @@ func TestSetAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/set_nested_attribute_test.go b/provider/metaschema/set_nested_attribute_test.go index d0d86508c..225a936f9 100644 --- a/provider/metaschema/set_nested_attribute_test.go +++ b/provider/metaschema/set_nested_attribute_test.go @@ -83,8 +83,6 @@ func TestSetNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -131,8 +129,6 @@ func TestSetNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -222,8 +218,6 @@ func TestSetNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +256,6 @@ func TestSetNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -302,8 +294,6 @@ func TestSetNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +330,6 @@ func TestSetNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +374,6 @@ func TestSetNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -420,8 +406,6 @@ func TestSetNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -460,8 +444,6 @@ func TestSetNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -500,8 +482,6 @@ func TestSetNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -534,8 +514,6 @@ func TestSetNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -562,8 +540,6 @@ func TestSetNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/single_nested_attribute_test.go b/provider/metaschema/single_nested_attribute_test.go index f04d55634..d590cbba8 100644 --- a/provider/metaschema/single_nested_attribute_test.go +++ b/provider/metaschema/single_nested_attribute_test.go @@ -81,8 +81,6 @@ func TestSingleNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -172,8 +170,6 @@ func TestSingleNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -204,8 +200,6 @@ func TestSingleNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -242,8 +236,6 @@ func TestSingleNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -280,8 +272,6 @@ func TestSingleNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +306,6 @@ func TestSingleNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +346,6 @@ func TestSingleNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,8 +376,6 @@ func TestSingleNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -428,8 +412,6 @@ func TestSingleNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -466,8 +448,6 @@ func TestSingleNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +478,6 @@ func TestSingleNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -526,8 +504,6 @@ func TestSingleNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/metaschema/string_attribute_test.go b/provider/metaschema/string_attribute_test.go index 00f34d5b2..c360462a1 100644 --- a/provider/metaschema/string_attribute_test.go +++ b/provider/metaschema/string_attribute_test.go @@ -55,8 +55,6 @@ func TestStringAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,8 +95,6 @@ func TestStringAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -132,8 +128,6 @@ func TestStringAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -166,8 +160,6 @@ func TestStringAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -200,8 +192,6 @@ func TestStringAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -234,8 +224,6 @@ func TestStringAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -262,8 +250,6 @@ func TestStringAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +282,6 @@ func TestStringAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +314,6 @@ func TestStringAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -358,8 +340,6 @@ func TestStringAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +366,6 @@ func TestStringAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/bool_attribute_test.go b/provider/schema/bool_attribute_test.go index 50e4af6ed..3e134f214 100644 --- a/provider/schema/bool_attribute_test.go +++ b/provider/schema/bool_attribute_test.go @@ -56,8 +56,6 @@ func TestBoolAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestBoolAttributeBoolValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestBoolAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestBoolAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestBoolAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestBoolAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestBoolAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestBoolAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestBoolAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestBoolAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestBoolAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestBoolAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/dynamic_attribute_test.go b/provider/schema/dynamic_attribute_test.go index 0779fe460..66c7d855e 100644 --- a/provider/schema/dynamic_attribute_test.go +++ b/provider/schema/dynamic_attribute_test.go @@ -56,8 +56,6 @@ func TestDynamicAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestDynamicAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestDynamicAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestDynamicAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestDynamicAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestDynamicAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,8 +257,6 @@ func TestDynamicAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestDynamicAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestDynamicAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestDynamicAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -399,8 +379,6 @@ func TestDynamicAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestDynamicAttributeDynamicValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/float32_attribute_test.go b/provider/schema/float32_attribute_test.go index 107216df6..70d13db04 100644 --- a/provider/schema/float32_attribute_test.go +++ b/provider/schema/float32_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat32AttributeFloat32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestFloat32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestFloat32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestFloat32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestFloat32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestFloat32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/float64_attribute_test.go b/provider/schema/float64_attribute_test.go index b08486708..8ff796cdb 100644 --- a/provider/schema/float64_attribute_test.go +++ b/provider/schema/float64_attribute_test.go @@ -56,8 +56,6 @@ func TestFloat64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestFloat64AttributeFloat64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -138,8 +134,6 @@ func TestFloat64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestFloat64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestFloat64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestFloat64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestFloat64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestFloat64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestFloat64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestFloat64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestFloat64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestFloat64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/int32_attribute_test.go b/provider/schema/int32_attribute_test.go index a612fb42f..b9fa878b7 100644 --- a/provider/schema/int32_attribute_test.go +++ b/provider/schema/int32_attribute_test.go @@ -56,8 +56,6 @@ func TestInt32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt32AttributeInt32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestInt32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestInt32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestInt32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestInt32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestInt32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/int64_attribute_test.go b/provider/schema/int64_attribute_test.go index 42efcaed4..c5ebec88a 100644 --- a/provider/schema/int64_attribute_test.go +++ b/provider/schema/int64_attribute_test.go @@ -56,8 +56,6 @@ func TestInt64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestInt64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestInt64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestInt64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestInt64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestInt64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -275,8 +263,6 @@ func TestInt64AttributeInt64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestInt64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestInt64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestInt64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -405,8 +385,6 @@ func TestInt64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestInt64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/list_attribute_test.go b/provider/schema/list_attribute_test.go index 2a529ae13..d0ab91c58 100644 --- a/provider/schema/list_attribute_test.go +++ b/provider/schema/list_attribute_test.go @@ -59,8 +59,6 @@ func TestListAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestListAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestListAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestListAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestListAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestListAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -277,8 +265,6 @@ func TestListAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -311,8 +297,6 @@ func TestListAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -345,8 +329,6 @@ func TestListAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +361,6 @@ func TestListAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -407,8 +387,6 @@ func TestListAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -441,8 +419,6 @@ func TestListAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -530,8 +506,6 @@ func TestListAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/list_nested_attribute_test.go b/provider/schema/list_nested_attribute_test.go index 33d6f1723..1f3715c73 100644 --- a/provider/schema/list_nested_attribute_test.go +++ b/provider/schema/list_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestListNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestListNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestListNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestListNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestListNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestListNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestListNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +416,6 @@ func TestListNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -470,8 +454,6 @@ func TestListNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -510,8 +492,6 @@ func TestListNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -550,8 +530,6 @@ func TestListNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -578,8 +556,6 @@ func TestListNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +594,6 @@ func TestListNestedAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -697,8 +671,6 @@ func TestListNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/list_nested_block_test.go b/provider/schema/list_nested_block_test.go index f7042840e..a5891a4f5 100644 --- a/provider/schema/list_nested_block_test.go +++ b/provider/schema/list_nested_block_test.go @@ -86,8 +86,6 @@ func TestListNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestListNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestListNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestListNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestListNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestListNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestListNestedBlockListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestListNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestListNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/map_attribute_test.go b/provider/schema/map_attribute_test.go index 8c5548e6d..f2e1e6a25 100644 --- a/provider/schema/map_attribute_test.go +++ b/provider/schema/map_attribute_test.go @@ -59,8 +59,6 @@ func TestMapAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestMapAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestMapAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestMapAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestMapAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestMapAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -277,8 +265,6 @@ func TestMapAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -311,8 +297,6 @@ func TestMapAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -345,8 +329,6 @@ func TestMapAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +361,6 @@ func TestMapAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -407,8 +387,6 @@ func TestMapAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -441,8 +419,6 @@ func TestMapAttributeMapValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -530,8 +506,6 @@ func TestMapAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/map_nested_attribute_test.go b/provider/schema/map_nested_attribute_test.go index 129321f22..bfbdb86c9 100644 --- a/provider/schema/map_nested_attribute_test.go +++ b/provider/schema/map_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestMapNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestMapNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestMapNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestMapNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestMapNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestMapNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestMapNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +416,6 @@ func TestMapNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -470,8 +454,6 @@ func TestMapNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -510,8 +492,6 @@ func TestMapNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -550,8 +530,6 @@ func TestMapNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -578,8 +556,6 @@ func TestMapNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +594,6 @@ func TestMapNestedAttributeMapNestedValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -697,8 +671,6 @@ func TestMapNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/nested_attribute_object_test.go b/provider/schema/nested_attribute_object_test.go index 968d071d0..6a14e6344 100644 --- a/provider/schema/nested_attribute_object_test.go +++ b/provider/schema/nested_attribute_object_test.go @@ -80,8 +80,6 @@ func TestNestedAttributeObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestNestedAttributeObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +181,6 @@ func TestNestedAttributeObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -223,8 +217,6 @@ func TestNestedAttributeObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -265,8 +257,6 @@ func TestNestedAttributeObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/nested_block_object_test.go b/provider/schema/nested_block_object_test.go index 5fa2a9c7e..3dd2beaf3 100644 --- a/provider/schema/nested_block_object_test.go +++ b/provider/schema/nested_block_object_test.go @@ -98,8 +98,6 @@ func TestNestedBlockObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -163,8 +161,6 @@ func TestNestedBlockObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -203,8 +199,6 @@ func TestNestedBlockObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -259,8 +253,6 @@ func TestNestedBlockObjectGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -297,8 +289,6 @@ func TestNestedBlockObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +341,6 @@ func TestNestedBlockObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/number_attribute_test.go b/provider/schema/number_attribute_test.go index 306e975e5..80dba9dd1 100644 --- a/provider/schema/number_attribute_test.go +++ b/provider/schema/number_attribute_test.go @@ -56,8 +56,6 @@ func TestNumberAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestNumberAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestNumberAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestNumberAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestNumberAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestNumberAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,8 +257,6 @@ func TestNumberAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestNumberAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestNumberAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestNumberAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -399,8 +379,6 @@ func TestNumberAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestNumberAttributeNumberValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/object_attribute_test.go b/provider/schema/object_attribute_test.go index 089d03f71..a53bc6bf5 100644 --- a/provider/schema/object_attribute_test.go +++ b/provider/schema/object_attribute_test.go @@ -65,8 +65,6 @@ func TestObjectAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -113,8 +111,6 @@ func TestObjectAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -153,8 +149,6 @@ func TestObjectAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -187,8 +181,6 @@ func TestObjectAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -221,8 +213,6 @@ func TestObjectAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -255,8 +245,6 @@ func TestObjectAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -283,8 +271,6 @@ func TestObjectAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -317,8 +303,6 @@ func TestObjectAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -351,8 +335,6 @@ func TestObjectAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -385,8 +367,6 @@ func TestObjectAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -413,8 +393,6 @@ func TestObjectAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -447,8 +425,6 @@ func TestObjectAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -563,8 +539,6 @@ func TestObjectAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/schema_test.go b/provider/schema/schema_test.go index 5b84aac8c..9007eabdc 100644 --- a/provider/schema/schema_test.go +++ b/provider/schema/schema_test.go @@ -100,8 +100,6 @@ func TestSchemaApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,7 +267,6 @@ func TestSchemaAttributeAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,7 +387,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -448,8 +444,6 @@ func TestSchemaGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -504,8 +498,6 @@ func TestSchemaGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -542,8 +534,6 @@ func TestSchemaGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -580,8 +570,6 @@ func TestSchemaGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +606,6 @@ func TestSchemaGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -650,8 +636,6 @@ func TestSchemaGetVersion(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -698,8 +682,6 @@ func TestSchemaType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -839,8 +821,6 @@ func TestSchemaTypeAtPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -972,8 +952,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1029,8 +1007,6 @@ func TestSchemaValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1342,8 +1318,6 @@ func TestSchemaValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/set_attribute_test.go b/provider/schema/set_attribute_test.go index 42aec99d1..bfa58193b 100644 --- a/provider/schema/set_attribute_test.go +++ b/provider/schema/set_attribute_test.go @@ -59,8 +59,6 @@ func TestSetAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -107,8 +105,6 @@ func TestSetAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -147,8 +143,6 @@ func TestSetAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -181,8 +175,6 @@ func TestSetAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -215,8 +207,6 @@ func TestSetAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +239,6 @@ func TestSetAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -277,8 +265,6 @@ func TestSetAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -311,8 +297,6 @@ func TestSetAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -345,8 +329,6 @@ func TestSetAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +361,6 @@ func TestSetAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -407,8 +387,6 @@ func TestSetAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -441,8 +419,6 @@ func TestSetAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -530,8 +506,6 @@ func TestSetAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/set_nested_attribute_test.go b/provider/schema/set_nested_attribute_test.go index 942cd2a25..3471f42e3 100644 --- a/provider/schema/set_nested_attribute_test.go +++ b/provider/schema/set_nested_attribute_test.go @@ -87,8 +87,6 @@ func TestSetNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestSetNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -232,8 +228,6 @@ func TestSetNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +266,6 @@ func TestSetNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -312,8 +304,6 @@ func TestSetNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +340,6 @@ func TestSetNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +384,6 @@ func TestSetNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +416,6 @@ func TestSetNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -470,8 +454,6 @@ func TestSetNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -510,8 +492,6 @@ func TestSetNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -550,8 +530,6 @@ func TestSetNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -578,8 +556,6 @@ func TestSetNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +594,6 @@ func TestSetNestedAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -697,8 +671,6 @@ func TestSetNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/set_nested_block_test.go b/provider/schema/set_nested_block_test.go index d8a680009..14bd372de 100644 --- a/provider/schema/set_nested_block_test.go +++ b/provider/schema/set_nested_block_test.go @@ -86,8 +86,6 @@ func TestSetNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -140,8 +138,6 @@ func TestSetNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +256,6 @@ func TestSetNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -300,8 +294,6 @@ func TestSetNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +332,6 @@ func TestSetNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -378,8 +368,6 @@ func TestSetNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestSetNestedBlockSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -476,8 +462,6 @@ func TestSetNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -554,8 +538,6 @@ func TestSetNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/single_nested_attribute_test.go b/provider/schema/single_nested_attribute_test.go index 6d40629a2..cbb2f3aa6 100644 --- a/provider/schema/single_nested_attribute_test.go +++ b/provider/schema/single_nested_attribute_test.go @@ -82,8 +82,6 @@ func TestSingleNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +171,6 @@ func TestSingleNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -211,8 +207,6 @@ func TestSingleNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,8 +243,6 @@ func TestSingleNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +279,6 @@ func TestSingleNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -323,8 +313,6 @@ func TestSingleNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -365,8 +353,6 @@ func TestSingleNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -397,8 +383,6 @@ func TestSingleNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -435,8 +419,6 @@ func TestSingleNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -473,8 +455,6 @@ func TestSingleNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -511,8 +491,6 @@ func TestSingleNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -539,8 +517,6 @@ func TestSingleNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -577,8 +553,6 @@ func TestSingleNestedAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/single_nested_block_test.go b/provider/schema/single_nested_block_test.go index 802f41be6..d4a7e75cd 100644 --- a/provider/schema/single_nested_block_test.go +++ b/provider/schema/single_nested_block_test.go @@ -99,8 +99,6 @@ func TestSingleNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +149,6 @@ func TestSingleNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +249,6 @@ func TestSingleNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -291,8 +285,6 @@ func TestSingleNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -329,8 +321,6 @@ func TestSingleNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +369,6 @@ func TestSingleNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -417,8 +405,6 @@ func TestSingleNestedBlockObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -471,8 +457,6 @@ func TestSingleNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/provider/schema/string_attribute_test.go b/provider/schema/string_attribute_test.go index 58b0cafeb..35e9f03a8 100644 --- a/provider/schema/string_attribute_test.go +++ b/provider/schema/string_attribute_test.go @@ -56,8 +56,6 @@ func TestStringAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -104,8 +102,6 @@ func TestStringAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -139,8 +135,6 @@ func TestStringAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -173,8 +167,6 @@ func TestStringAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -207,8 +199,6 @@ func TestStringAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -241,8 +231,6 @@ func TestStringAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,8 +257,6 @@ func TestStringAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +289,6 @@ func TestStringAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -337,8 +321,6 @@ func TestStringAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -371,8 +353,6 @@ func TestStringAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -399,8 +379,6 @@ func TestStringAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -433,8 +411,6 @@ func TestStringAttributeStringValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/providerserver/serve_opts_test.go b/providerserver/serve_opts_test.go index 5b7634819..5df7e98f1 100644 --- a/providerserver/serve_opts_test.go +++ b/providerserver/serve_opts_test.go @@ -60,8 +60,6 @@ func TestServeOptsValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -111,8 +109,6 @@ func TestServeOptsValidateAddress(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/bool_attribute_test.go b/resource/schema/bool_attribute_test.go index e2d77dd42..9f2d2e863 100644 --- a/resource/schema/bool_attribute_test.go +++ b/resource/schema/bool_attribute_test.go @@ -62,8 +62,6 @@ func TestBoolAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestBoolAttributeBoolDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -157,8 +153,6 @@ func TestBoolAttributeBoolPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -191,8 +185,6 @@ func TestBoolAttributeBoolValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -225,8 +217,6 @@ func TestBoolAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +250,6 @@ func TestBoolAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +282,6 @@ func TestBoolAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestBoolAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -362,8 +346,6 @@ func TestBoolAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +378,6 @@ func TestBoolAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +410,6 @@ func TestBoolAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestBoolAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestBoolAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestBoolAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestBoolAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/booldefault/static_value_test.go b/resource/schema/booldefault/static_value_test.go index a346d57d8..8d79eb88d 100644 --- a/resource/schema/booldefault/static_value_test.go +++ b/resource/schema/booldefault/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticBoolDefaultBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/boolplanmodifier/requires_replace_if_configured_test.go b/resource/schema/boolplanmodifier/requires_replace_if_configured_test.go index b4559f5a6..13bfae26b 100644 --- a/resource/schema/boolplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/boolplanmodifier/requires_replace_if_configured_test.go @@ -151,8 +151,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/boolplanmodifier/requires_replace_if_test.go b/resource/schema/boolplanmodifier/requires_replace_if_test.go index 73a941856..4d88e36ef 100644 --- a/resource/schema/boolplanmodifier/requires_replace_if_test.go +++ b/resource/schema/boolplanmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/boolplanmodifier/requires_replace_test.go b/resource/schema/boolplanmodifier/requires_replace_test.go index bb92ca4d0..d73c2b2da 100644 --- a/resource/schema/boolplanmodifier/requires_replace_test.go +++ b/resource/schema/boolplanmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/boolplanmodifier/use_state_for_unknown_test.go b/resource/schema/boolplanmodifier/use_state_for_unknown_test.go index cad1f649e..c385c8c75 100644 --- a/resource/schema/boolplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/boolplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamic_attribute_test.go b/resource/schema/dynamic_attribute_test.go index 93c5010f3..c1340d493 100644 --- a/resource/schema/dynamic_attribute_test.go +++ b/resource/schema/dynamic_attribute_test.go @@ -62,8 +62,6 @@ func TestDynamicAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestDynamicAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +141,6 @@ func TestDynamicAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -179,8 +173,6 @@ func TestDynamicAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -213,8 +205,6 @@ func TestDynamicAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +237,6 @@ func TestDynamicAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -281,8 +269,6 @@ func TestDynamicAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -315,8 +301,6 @@ func TestDynamicAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +333,6 @@ func TestDynamicAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -383,8 +365,6 @@ func TestDynamicAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -417,8 +397,6 @@ func TestDynamicAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestDynamicAttributeDynamicDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestDynamicAttributeDynamicPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestDynamicAttributeDynamicValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestDynamicAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamicdefault/static_value_test.go b/resource/schema/dynamicdefault/static_value_test.go index d96670b51..825e4d646 100644 --- a/resource/schema/dynamicdefault/static_value_test.go +++ b/resource/schema/dynamicdefault/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticValueDefaultDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamicplanmodifier/requires_replace_if_configured_test.go b/resource/schema/dynamicplanmodifier/requires_replace_if_configured_test.go index fc017e69e..8f26f5b69 100644 --- a/resource/schema/dynamicplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/dynamicplanmodifier/requires_replace_if_configured_test.go @@ -164,8 +164,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamicplanmodifier/requires_replace_if_test.go b/resource/schema/dynamicplanmodifier/requires_replace_if_test.go index c482bcab8..a878405f2 100644 --- a/resource/schema/dynamicplanmodifier/requires_replace_if_test.go +++ b/resource/schema/dynamicplanmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamicplanmodifier/requires_replace_test.go b/resource/schema/dynamicplanmodifier/requires_replace_test.go index 2b1d76fb4..6fad7bac8 100644 --- a/resource/schema/dynamicplanmodifier/requires_replace_test.go +++ b/resource/schema/dynamicplanmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/dynamicplanmodifier/use_state_for_unknown_test.go b/resource/schema/dynamicplanmodifier/use_state_for_unknown_test.go index 13fbcd264..58e346bf1 100644 --- a/resource/schema/dynamicplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/dynamicplanmodifier/use_state_for_unknown_test.go @@ -140,8 +140,6 @@ func TestUseStateForUnknownModifierPlanModifyDynamic(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32_attribute_test.go b/resource/schema/float32_attribute_test.go index 3c90d0081..4671b082f 100644 --- a/resource/schema/float32_attribute_test.go +++ b/resource/schema/float32_attribute_test.go @@ -62,8 +62,6 @@ func TestFloat32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestFloat32AttributeFloat32DefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -157,8 +153,6 @@ func TestFloat32AttributeFloat32PlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -191,8 +185,6 @@ func TestFloat32AttributeFloat32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -225,8 +217,6 @@ func TestFloat32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +250,6 @@ func TestFloat32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +282,6 @@ func TestFloat32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestFloat32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -362,8 +346,6 @@ func TestFloat32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +378,6 @@ func TestFloat32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +410,6 @@ func TestFloat32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestFloat32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestFloat32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestFloat32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestFloat32AttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32default/static_value_test.go b/resource/schema/float32default/static_value_test.go index 543677b05..9e61e4309 100644 --- a/resource/schema/float32default/static_value_test.go +++ b/resource/schema/float32default/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticFloat32DefaultFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32planmodifier/requires_replace_if_configured_test.go b/resource/schema/float32planmodifier/requires_replace_if_configured_test.go index 2d13f3d97..ef437a77c 100644 --- a/resource/schema/float32planmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/float32planmodifier/requires_replace_if_configured_test.go @@ -151,8 +151,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32planmodifier/requires_replace_if_test.go b/resource/schema/float32planmodifier/requires_replace_if_test.go index f8185a66f..cc8c07e04 100644 --- a/resource/schema/float32planmodifier/requires_replace_if_test.go +++ b/resource/schema/float32planmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32planmodifier/requires_replace_test.go b/resource/schema/float32planmodifier/requires_replace_test.go index 32f35e86c..02252e4ee 100644 --- a/resource/schema/float32planmodifier/requires_replace_test.go +++ b/resource/schema/float32planmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float32planmodifier/use_state_for_unknown_test.go b/resource/schema/float32planmodifier/use_state_for_unknown_test.go index cb8c514fa..2151333aa 100644 --- a/resource/schema/float32planmodifier/use_state_for_unknown_test.go +++ b/resource/schema/float32planmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64_attribute_test.go b/resource/schema/float64_attribute_test.go index 939080080..0a42d4770 100644 --- a/resource/schema/float64_attribute_test.go +++ b/resource/schema/float64_attribute_test.go @@ -62,8 +62,6 @@ func TestFloat64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -123,8 +121,6 @@ func TestFloat64AttributeFloat64DefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -157,8 +153,6 @@ func TestFloat64AttributeFloat64PlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -191,8 +185,6 @@ func TestFloat64AttributeFloat64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -225,8 +217,6 @@ func TestFloat64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +250,6 @@ func TestFloat64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +282,6 @@ func TestFloat64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestFloat64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -362,8 +346,6 @@ func TestFloat64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +378,6 @@ func TestFloat64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +410,6 @@ func TestFloat64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestFloat64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestFloat64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestFloat64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestFloat64AttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64default/static_value_test.go b/resource/schema/float64default/static_value_test.go index 03feb33c1..923a0fe6d 100644 --- a/resource/schema/float64default/static_value_test.go +++ b/resource/schema/float64default/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticFloat64DefaultFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64planmodifier/requires_replace_if_configured_test.go b/resource/schema/float64planmodifier/requires_replace_if_configured_test.go index 2823b6482..79b567a26 100644 --- a/resource/schema/float64planmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/float64planmodifier/requires_replace_if_configured_test.go @@ -151,8 +151,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64planmodifier/requires_replace_if_test.go b/resource/schema/float64planmodifier/requires_replace_if_test.go index eec7cbdb2..15fec9b42 100644 --- a/resource/schema/float64planmodifier/requires_replace_if_test.go +++ b/resource/schema/float64planmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64planmodifier/requires_replace_test.go b/resource/schema/float64planmodifier/requires_replace_test.go index 5899e327e..172cf5ca4 100644 --- a/resource/schema/float64planmodifier/requires_replace_test.go +++ b/resource/schema/float64planmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/float64planmodifier/use_state_for_unknown_test.go b/resource/schema/float64planmodifier/use_state_for_unknown_test.go index d8d9168c5..75f439847 100644 --- a/resource/schema/float64planmodifier/use_state_for_unknown_test.go +++ b/resource/schema/float64planmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32_attribute_test.go b/resource/schema/int32_attribute_test.go index 48eb3d2f2..a151c9406 100644 --- a/resource/schema/int32_attribute_test.go +++ b/resource/schema/int32_attribute_test.go @@ -62,8 +62,6 @@ func TestInt32AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestInt32AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +141,6 @@ func TestInt32AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -179,8 +173,6 @@ func TestInt32AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -213,8 +205,6 @@ func TestInt32AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +237,6 @@ func TestInt32AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +282,6 @@ func TestInt32AttributeInt32DefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestInt32AttributeInt32PlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -362,8 +346,6 @@ func TestInt32AttributeInt32Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +378,6 @@ func TestInt32AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +410,6 @@ func TestInt32AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestInt32AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestInt32AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestInt32AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestInt32AttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32default/static_value_test.go b/resource/schema/int32default/static_value_test.go index 6b34cd9d7..2fed56939 100644 --- a/resource/schema/int32default/static_value_test.go +++ b/resource/schema/int32default/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticInt32DefaultInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32planmodifier/requires_replace_if_configured_test.go b/resource/schema/int32planmodifier/requires_replace_if_configured_test.go index 4f6873025..6357e014b 100644 --- a/resource/schema/int32planmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/int32planmodifier/requires_replace_if_configured_test.go @@ -152,8 +152,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32planmodifier/requires_replace_if_test.go b/resource/schema/int32planmodifier/requires_replace_if_test.go index 950c94f47..6bc3cc165 100644 --- a/resource/schema/int32planmodifier/requires_replace_if_test.go +++ b/resource/schema/int32planmodifier/requires_replace_if_test.go @@ -163,8 +163,6 @@ func TestRequiresReplaceIfModifierPlanModifyInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32planmodifier/requires_replace_test.go b/resource/schema/int32planmodifier/requires_replace_test.go index 71881c8a6..8f1ea86e9 100644 --- a/resource/schema/int32planmodifier/requires_replace_test.go +++ b/resource/schema/int32planmodifier/requires_replace_test.go @@ -135,8 +135,6 @@ func TestRequiresReplaceModifierPlanModifyInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int32planmodifier/use_state_for_unknown_test.go b/resource/schema/int32planmodifier/use_state_for_unknown_test.go index 6cb27e802..45bdc2b10 100644 --- a/resource/schema/int32planmodifier/use_state_for_unknown_test.go +++ b/resource/schema/int32planmodifier/use_state_for_unknown_test.go @@ -122,8 +122,6 @@ func TestUseStateForUnknownModifierPlanModifyInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64_attribute_test.go b/resource/schema/int64_attribute_test.go index 032f523c9..1ce11e722 100644 --- a/resource/schema/int64_attribute_test.go +++ b/resource/schema/int64_attribute_test.go @@ -62,8 +62,6 @@ func TestInt64AttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestInt64AttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +141,6 @@ func TestInt64AttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -179,8 +173,6 @@ func TestInt64AttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -213,8 +205,6 @@ func TestInt64AttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +237,6 @@ func TestInt64AttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +282,6 @@ func TestInt64AttributeInt64DefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -328,8 +314,6 @@ func TestInt64AttributeInt64PlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -362,8 +346,6 @@ func TestInt64AttributeInt64Validators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -396,8 +378,6 @@ func TestInt64AttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -430,8 +410,6 @@ func TestInt64AttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestInt64AttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestInt64AttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestInt64AttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestInt64AttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64default/static_value_test.go b/resource/schema/int64default/static_value_test.go index b6dbce3f1..13404c8fc 100644 --- a/resource/schema/int64default/static_value_test.go +++ b/resource/schema/int64default/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticInt64DefaultInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64planmodifier/requires_replace_if_configured_test.go b/resource/schema/int64planmodifier/requires_replace_if_configured_test.go index 23bbdb2ed..915e1b302 100644 --- a/resource/schema/int64planmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/int64planmodifier/requires_replace_if_configured_test.go @@ -151,8 +151,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64planmodifier/requires_replace_if_test.go b/resource/schema/int64planmodifier/requires_replace_if_test.go index 9c9a05451..f19b794b0 100644 --- a/resource/schema/int64planmodifier/requires_replace_if_test.go +++ b/resource/schema/int64planmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64planmodifier/requires_replace_test.go b/resource/schema/int64planmodifier/requires_replace_test.go index dcb819ead..92298f8a8 100644 --- a/resource/schema/int64planmodifier/requires_replace_test.go +++ b/resource/schema/int64planmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/int64planmodifier/use_state_for_unknown_test.go b/resource/schema/int64planmodifier/use_state_for_unknown_test.go index bd7e9279a..c588e5e67 100644 --- a/resource/schema/int64planmodifier/use_state_for_unknown_test.go +++ b/resource/schema/int64planmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/list_attribute_test.go b/resource/schema/list_attribute_test.go index 07db0c333..1be15bbb7 100644 --- a/resource/schema/list_attribute_test.go +++ b/resource/schema/list_attribute_test.go @@ -63,8 +63,6 @@ func TestListAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -111,8 +109,6 @@ func TestListAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +147,6 @@ func TestListAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +179,6 @@ func TestListAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -219,8 +211,6 @@ func TestListAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +243,6 @@ func TestListAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestListAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -321,8 +307,6 @@ func TestListAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -355,8 +339,6 @@ func TestListAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -389,8 +371,6 @@ func TestListAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +403,6 @@ func TestListAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -484,8 +462,6 @@ func TestListAttributeListDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -518,8 +494,6 @@ func TestListAttributeListPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -552,8 +526,6 @@ func TestListAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -748,8 +720,6 @@ func TestListAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/list_nested_attribute_test.go b/resource/schema/list_nested_attribute_test.go index 290fd0dc7..258d7cf44 100644 --- a/resource/schema/list_nested_attribute_test.go +++ b/resource/schema/list_nested_attribute_test.go @@ -91,8 +91,6 @@ func TestListNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestListNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -236,8 +232,6 @@ func TestListNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -276,8 +270,6 @@ func TestListNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +308,6 @@ func TestListNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -354,8 +344,6 @@ func TestListNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -400,8 +388,6 @@ func TestListNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -440,8 +426,6 @@ func TestListNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -480,8 +464,6 @@ func TestListNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -520,8 +502,6 @@ func TestListNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -560,8 +540,6 @@ func TestListNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -594,8 +572,6 @@ func TestListNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -655,8 +631,6 @@ func TestListNestedAttributeListDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -695,8 +669,6 @@ func TestListNestedAttributeListPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -735,8 +707,6 @@ func TestListNestedAttributeListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1034,8 +1004,6 @@ func TestListNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/list_nested_block_test.go b/resource/schema/list_nested_block_test.go index c58551a04..e500287c1 100644 --- a/resource/schema/list_nested_block_test.go +++ b/resource/schema/list_nested_block_test.go @@ -87,8 +87,6 @@ func TestListNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestListNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -261,8 +257,6 @@ func TestListNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -301,8 +295,6 @@ func TestListNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -341,8 +333,6 @@ func TestListNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +369,6 @@ func TestListNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -419,8 +407,6 @@ func TestListNestedBlockListPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -459,8 +445,6 @@ func TestListNestedBlockListValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -517,8 +501,6 @@ func TestListNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -569,8 +551,6 @@ func TestListNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/listdefault/static_value_test.go b/resource/schema/listdefault/static_value_test.go index 0ca83bcb3..0d0c8e50a 100644 --- a/resource/schema/listdefault/static_value_test.go +++ b/resource/schema/listdefault/static_value_test.go @@ -41,8 +41,6 @@ func TestStaticValueDefaultList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/listplanmodifier/requires_replace_if_configured_test.go b/resource/schema/listplanmodifier/requires_replace_if_configured_test.go index 55bb3d0a8..a7552a119 100644 --- a/resource/schema/listplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/listplanmodifier/requires_replace_if_configured_test.go @@ -154,8 +154,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/listplanmodifier/requires_replace_if_test.go b/resource/schema/listplanmodifier/requires_replace_if_test.go index 40887f128..2f6aa2be9 100644 --- a/resource/schema/listplanmodifier/requires_replace_if_test.go +++ b/resource/schema/listplanmodifier/requires_replace_if_test.go @@ -165,8 +165,6 @@ func TestRequiresReplaceIfModifierPlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/listplanmodifier/requires_replace_test.go b/resource/schema/listplanmodifier/requires_replace_test.go index 32ac458f7..6961bec81 100644 --- a/resource/schema/listplanmodifier/requires_replace_test.go +++ b/resource/schema/listplanmodifier/requires_replace_test.go @@ -137,8 +137,6 @@ func TestRequiresReplaceModifierPlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/listplanmodifier/use_state_for_unknown_test.go b/resource/schema/listplanmodifier/use_state_for_unknown_test.go index 6a38f8221..e41b07cac 100644 --- a/resource/schema/listplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/listplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyList(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/map_attribute_test.go b/resource/schema/map_attribute_test.go index 9e48ea787..b62293350 100644 --- a/resource/schema/map_attribute_test.go +++ b/resource/schema/map_attribute_test.go @@ -63,8 +63,6 @@ func TestMapAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -111,8 +109,6 @@ func TestMapAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +147,6 @@ func TestMapAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +179,6 @@ func TestMapAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -219,8 +211,6 @@ func TestMapAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +243,6 @@ func TestMapAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestMapAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -321,8 +307,6 @@ func TestMapAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -355,8 +339,6 @@ func TestMapAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -389,8 +371,6 @@ func TestMapAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +403,6 @@ func TestMapAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -484,8 +462,6 @@ func TestMapAttributeMapDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -518,8 +494,6 @@ func TestMapAttributeMapPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -551,8 +525,6 @@ func TestMapAttributeMapValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -747,8 +719,6 @@ func TestMapAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/map_nested_attribute_test.go b/resource/schema/map_nested_attribute_test.go index 4c7a72489..6f360d85b 100644 --- a/resource/schema/map_nested_attribute_test.go +++ b/resource/schema/map_nested_attribute_test.go @@ -91,8 +91,6 @@ func TestMapNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestMapNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -236,8 +232,6 @@ func TestMapNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -276,8 +270,6 @@ func TestMapNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +308,6 @@ func TestMapNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -354,8 +344,6 @@ func TestMapNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -400,8 +388,6 @@ func TestMapNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -440,8 +426,6 @@ func TestMapNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -480,8 +464,6 @@ func TestMapNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -520,8 +502,6 @@ func TestMapNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -560,8 +540,6 @@ func TestMapNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -594,8 +572,6 @@ func TestMapNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -655,8 +631,6 @@ func TestMapNestedAttributeMapNestedDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -695,8 +669,6 @@ func TestMapNestedAttributeMapNestedPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -735,8 +707,6 @@ func TestMapNestedAttributeMapNestedValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1034,8 +1004,6 @@ func TestMapNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/mapdefault/static_value_test.go b/resource/schema/mapdefault/static_value_test.go index 9b606d7c2..04d1a9325 100644 --- a/resource/schema/mapdefault/static_value_test.go +++ b/resource/schema/mapdefault/static_value_test.go @@ -41,8 +41,6 @@ func TestStaticValueDefaultMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/mapplanmodifier/requires_replace_if_configured_test.go b/resource/schema/mapplanmodifier/requires_replace_if_configured_test.go index b9b7bfd76..9eecb0eb9 100644 --- a/resource/schema/mapplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/mapplanmodifier/requires_replace_if_configured_test.go @@ -154,8 +154,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/mapplanmodifier/requires_replace_if_test.go b/resource/schema/mapplanmodifier/requires_replace_if_test.go index cfe362858..5edd5ceac 100644 --- a/resource/schema/mapplanmodifier/requires_replace_if_test.go +++ b/resource/schema/mapplanmodifier/requires_replace_if_test.go @@ -165,8 +165,6 @@ func TestRequiresReplaceIfModifierPlanModifyMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/mapplanmodifier/requires_replace_test.go b/resource/schema/mapplanmodifier/requires_replace_test.go index bb8b08b69..8d1f6f7eb 100644 --- a/resource/schema/mapplanmodifier/requires_replace_test.go +++ b/resource/schema/mapplanmodifier/requires_replace_test.go @@ -137,8 +137,6 @@ func TestRequiresReplaceModifierPlanModifyMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/mapplanmodifier/use_state_for_unknown_test.go b/resource/schema/mapplanmodifier/use_state_for_unknown_test.go index 3b4bf72eb..1ea2aa940 100644 --- a/resource/schema/mapplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/mapplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyMap(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/nested_attribute_object_test.go b/resource/schema/nested_attribute_object_test.go index 7b325bbb8..f86c1952e 100644 --- a/resource/schema/nested_attribute_object_test.go +++ b/resource/schema/nested_attribute_object_test.go @@ -81,8 +81,6 @@ func TestNestedAttributeObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +144,6 @@ func TestNestedAttributeObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -186,8 +182,6 @@ func TestNestedAttributeObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -224,8 +218,6 @@ func TestNestedAttributeObjectObjectPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -261,8 +253,6 @@ func TestNestedAttributeObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -303,8 +293,6 @@ func TestNestedAttributeObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/nested_block_object_test.go b/resource/schema/nested_block_object_test.go index 95ff4613a..81e64c4e0 100644 --- a/resource/schema/nested_block_object_test.go +++ b/resource/schema/nested_block_object_test.go @@ -99,8 +99,6 @@ func TestNestedBlockObjectApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -164,8 +162,6 @@ func TestNestedBlockObjectEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -204,8 +200,6 @@ func TestNestedBlockObjectGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +254,6 @@ func TestNestedBlockObjectGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -298,8 +290,6 @@ func TestNestedBlockObjectObjectPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -336,8 +326,6 @@ func TestNestedBlockObjectObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,8 +378,6 @@ func TestNestedBlockObjectType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/number_attribute_test.go b/resource/schema/number_attribute_test.go index e9ff78cc8..537bd1bfc 100644 --- a/resource/schema/number_attribute_test.go +++ b/resource/schema/number_attribute_test.go @@ -63,8 +63,6 @@ func TestNumberAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -111,8 +109,6 @@ func TestNumberAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +142,6 @@ func TestNumberAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +174,6 @@ func TestNumberAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -214,8 +206,6 @@ func TestNumberAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +238,6 @@ func TestNumberAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -282,8 +270,6 @@ func TestNumberAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +302,6 @@ func TestNumberAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -350,8 +334,6 @@ func TestNumberAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -384,8 +366,6 @@ func TestNumberAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +398,6 @@ func TestNumberAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -469,8 +447,6 @@ func TestNumberAttributeNumberDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -503,8 +479,6 @@ func TestNumberAttributeNumberPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -537,8 +511,6 @@ func TestNumberAttributeNumberValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -601,8 +573,6 @@ func TestNumberAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/numberdefault/static_value_test.go b/resource/schema/numberdefault/static_value_test.go index 48fa4e36a..a7c4ab79d 100644 --- a/resource/schema/numberdefault/static_value_test.go +++ b/resource/schema/numberdefault/static_value_test.go @@ -31,8 +31,6 @@ func TestStaticBigFloatDefaultNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/numberplanmodifier/requires_replace_if_configured_test.go b/resource/schema/numberplanmodifier/requires_replace_if_configured_test.go index f9280324b..88594020c 100644 --- a/resource/schema/numberplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/numberplanmodifier/requires_replace_if_configured_test.go @@ -152,8 +152,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/numberplanmodifier/requires_replace_if_test.go b/resource/schema/numberplanmodifier/requires_replace_if_test.go index ad12a05cd..67272731e 100644 --- a/resource/schema/numberplanmodifier/requires_replace_if_test.go +++ b/resource/schema/numberplanmodifier/requires_replace_if_test.go @@ -163,8 +163,6 @@ func TestRequiresReplaceIfModifierPlanModifyNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/numberplanmodifier/requires_replace_test.go b/resource/schema/numberplanmodifier/requires_replace_test.go index e88831f06..b902a544f 100644 --- a/resource/schema/numberplanmodifier/requires_replace_test.go +++ b/resource/schema/numberplanmodifier/requires_replace_test.go @@ -135,8 +135,6 @@ func TestRequiresReplaceModifierPlanModifyNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/numberplanmodifier/use_state_for_unknown_test.go b/resource/schema/numberplanmodifier/use_state_for_unknown_test.go index 982f17854..b910a4335 100644 --- a/resource/schema/numberplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/numberplanmodifier/use_state_for_unknown_test.go @@ -122,8 +122,6 @@ func TestUseStateForUnknownModifierPlanModifyNumber(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/object_attribute_test.go b/resource/schema/object_attribute_test.go index 8f1b6cc3c..908c48395 100644 --- a/resource/schema/object_attribute_test.go +++ b/resource/schema/object_attribute_test.go @@ -69,8 +69,6 @@ func TestObjectAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -117,8 +115,6 @@ func TestObjectAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -157,8 +153,6 @@ func TestObjectAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -191,8 +185,6 @@ func TestObjectAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -225,8 +217,6 @@ func TestObjectAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -259,8 +249,6 @@ func TestObjectAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -293,8 +281,6 @@ func TestObjectAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -327,8 +313,6 @@ func TestObjectAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -361,8 +345,6 @@ func TestObjectAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -395,8 +377,6 @@ func TestObjectAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -429,8 +409,6 @@ func TestObjectAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -494,8 +472,6 @@ func TestObjectAttributeObjectDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -528,8 +504,6 @@ func TestObjectAttributeObjectPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -562,8 +536,6 @@ func TestObjectAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -801,8 +773,6 @@ func TestObjectAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/objectdefault/static_value_test.go b/resource/schema/objectdefault/static_value_test.go index c6f14f8e6..5aae03793 100644 --- a/resource/schema/objectdefault/static_value_test.go +++ b/resource/schema/objectdefault/static_value_test.go @@ -45,8 +45,6 @@ func TestStaticValueDefaultObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/objectplanmodifier/requires_replace_if_configured_test.go b/resource/schema/objectplanmodifier/requires_replace_if_configured_test.go index abc413c0d..df267a1f4 100644 --- a/resource/schema/objectplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/objectplanmodifier/requires_replace_if_configured_test.go @@ -154,8 +154,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/objectplanmodifier/requires_replace_if_test.go b/resource/schema/objectplanmodifier/requires_replace_if_test.go index 5723167a5..15417ca49 100644 --- a/resource/schema/objectplanmodifier/requires_replace_if_test.go +++ b/resource/schema/objectplanmodifier/requires_replace_if_test.go @@ -165,8 +165,6 @@ func TestRequiresReplaceIfModifierPlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/objectplanmodifier/requires_replace_test.go b/resource/schema/objectplanmodifier/requires_replace_test.go index af62eb615..4dd051d4a 100644 --- a/resource/schema/objectplanmodifier/requires_replace_test.go +++ b/resource/schema/objectplanmodifier/requires_replace_test.go @@ -137,8 +137,6 @@ func TestRequiresReplaceModifierPlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/objectplanmodifier/use_state_for_unknown_test.go b/resource/schema/objectplanmodifier/use_state_for_unknown_test.go index f285194a0..f90747529 100644 --- a/resource/schema/objectplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/objectplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/schema_test.go b/resource/schema/schema_test.go index 7df9790ac..a48fed812 100644 --- a/resource/schema/schema_test.go +++ b/resource/schema/schema_test.go @@ -100,8 +100,6 @@ func TestSchemaApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -269,7 +267,6 @@ func TestSchemaAttributeAtPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -390,7 +387,6 @@ func TestSchemaAttributeAtTerraformPath(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -448,8 +444,6 @@ func TestSchemaGetAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -504,8 +498,6 @@ func TestSchemaGetBlocks(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -542,8 +534,6 @@ func TestSchemaGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -580,8 +570,6 @@ func TestSchemaGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -618,8 +606,6 @@ func TestSchemaGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -659,8 +645,6 @@ func TestSchemaGetVersion(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -707,8 +691,6 @@ func TestSchemaType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -848,8 +830,6 @@ func TestSchemaTypeAtPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -981,8 +961,6 @@ func TestSchemaTypeAtTerraformPath(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1038,8 +1016,6 @@ func TestSchemaValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1351,8 +1327,6 @@ func TestSchemaValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/set_attribute_test.go b/resource/schema/set_attribute_test.go index 9f7c6d0ac..ebc7f291b 100644 --- a/resource/schema/set_attribute_test.go +++ b/resource/schema/set_attribute_test.go @@ -63,8 +63,6 @@ func TestSetAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -111,8 +109,6 @@ func TestSetAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +147,6 @@ func TestSetAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +179,6 @@ func TestSetAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -219,8 +211,6 @@ func TestSetAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -253,8 +243,6 @@ func TestSetAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -287,8 +275,6 @@ func TestSetAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -321,8 +307,6 @@ func TestSetAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -355,8 +339,6 @@ func TestSetAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -389,8 +371,6 @@ func TestSetAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -423,8 +403,6 @@ func TestSetAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -484,8 +462,6 @@ func TestSetAttributeSetDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -518,8 +494,6 @@ func TestSetAttributeSetPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -552,8 +526,6 @@ func TestSetAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -737,8 +709,6 @@ func TestSetAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/set_nested_attribute_test.go b/resource/schema/set_nested_attribute_test.go index 8ea3cb58c..0e24d3f72 100644 --- a/resource/schema/set_nested_attribute_test.go +++ b/resource/schema/set_nested_attribute_test.go @@ -91,8 +91,6 @@ func TestSetNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +143,6 @@ func TestSetNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -236,8 +232,6 @@ func TestSetNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -276,8 +270,6 @@ func TestSetNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -316,8 +308,6 @@ func TestSetNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -354,8 +344,6 @@ func TestSetNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -400,8 +388,6 @@ func TestSetNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -440,8 +426,6 @@ func TestSetNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -480,8 +464,6 @@ func TestSetNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -520,8 +502,6 @@ func TestSetNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -560,8 +540,6 @@ func TestSetNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -594,8 +572,6 @@ func TestSetNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -655,8 +631,6 @@ func TestSetNestedAttributeSetDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -695,8 +669,6 @@ func TestSetNestedAttributeSetPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -735,8 +707,6 @@ func TestSetNestedAttributeSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1034,8 +1004,6 @@ func TestSetNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/set_nested_block_test.go b/resource/schema/set_nested_block_test.go index 45d054366..4aee18302 100644 --- a/resource/schema/set_nested_block_test.go +++ b/resource/schema/set_nested_block_test.go @@ -87,8 +87,6 @@ func TestSetNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -141,8 +139,6 @@ func TestSetNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -261,8 +257,6 @@ func TestSetNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -301,8 +295,6 @@ func TestSetNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -341,8 +333,6 @@ func TestSetNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -379,8 +369,6 @@ func TestSetNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -419,8 +407,6 @@ func TestSetNestedBlockSetPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -459,8 +445,6 @@ func TestSetNestedBlockSetValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -517,8 +501,6 @@ func TestSetNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -569,8 +551,6 @@ func TestSetNestedBlockValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/setdefault/static_value_test.go b/resource/schema/setdefault/static_value_test.go index 6778995b5..418bda46c 100644 --- a/resource/schema/setdefault/static_value_test.go +++ b/resource/schema/setdefault/static_value_test.go @@ -41,8 +41,6 @@ func TestStaticValueDefaultSet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/setplanmodifier/requires_replace_if_configured_test.go b/resource/schema/setplanmodifier/requires_replace_if_configured_test.go index 7a8f06f19..350f37aa4 100644 --- a/resource/schema/setplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/setplanmodifier/requires_replace_if_configured_test.go @@ -154,8 +154,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/setplanmodifier/requires_replace_if_test.go b/resource/schema/setplanmodifier/requires_replace_if_test.go index 24a0c3684..b5c057f8d 100644 --- a/resource/schema/setplanmodifier/requires_replace_if_test.go +++ b/resource/schema/setplanmodifier/requires_replace_if_test.go @@ -165,8 +165,6 @@ func TestRequiresReplaceIfModifierPlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/setplanmodifier/requires_replace_test.go b/resource/schema/setplanmodifier/requires_replace_test.go index 731b9a195..36a8a9671 100644 --- a/resource/schema/setplanmodifier/requires_replace_test.go +++ b/resource/schema/setplanmodifier/requires_replace_test.go @@ -137,8 +137,6 @@ func TestRequiresReplaceModifierPlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/setplanmodifier/use_state_for_unknown_test.go b/resource/schema/setplanmodifier/use_state_for_unknown_test.go index 47a324dac..c55bc2034 100644 --- a/resource/schema/setplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/setplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifySet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/single_nested_attribute_test.go b/resource/schema/single_nested_attribute_test.go index f1b666566..b03725b76 100644 --- a/resource/schema/single_nested_attribute_test.go +++ b/resource/schema/single_nested_attribute_test.go @@ -89,8 +89,6 @@ func TestSingleNestedAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -180,8 +178,6 @@ func TestSingleNestedAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -218,8 +214,6 @@ func TestSingleNestedAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -256,8 +250,6 @@ func TestSingleNestedAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,8 +286,6 @@ func TestSingleNestedAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +320,6 @@ func TestSingleNestedAttributeGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -372,8 +360,6 @@ func TestSingleNestedAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -410,8 +396,6 @@ func TestSingleNestedAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -448,8 +432,6 @@ func TestSingleNestedAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -486,8 +468,6 @@ func TestSingleNestedAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -524,8 +504,6 @@ func TestSingleNestedAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -558,8 +536,6 @@ func TestSingleNestedAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -623,8 +599,6 @@ func TestSingleNestedAttributeObjectDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -661,8 +635,6 @@ func TestSingleNestedAttributeObjectPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -699,8 +671,6 @@ func TestSingleNestedAttributeObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -936,8 +906,6 @@ func TestSingleNestedAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/single_nested_block_test.go b/resource/schema/single_nested_block_test.go index 8216ca180..5c2c7a0c5 100644 --- a/resource/schema/single_nested_block_test.go +++ b/resource/schema/single_nested_block_test.go @@ -100,8 +100,6 @@ func TestSingleNestedBlockApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -152,8 +150,6 @@ func TestSingleNestedBlockGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -254,8 +250,6 @@ func TestSingleNestedBlockEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -292,8 +286,6 @@ func TestSingleNestedBlockGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -330,8 +322,6 @@ func TestSingleNestedBlockGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -380,8 +370,6 @@ func TestSingleNestedBlockGetNestedObject(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -418,8 +406,6 @@ func TestSingleNestedBlockObjectPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -456,8 +442,6 @@ func TestSingleNestedBlockObjectValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -510,8 +494,6 @@ func TestSingleNestedBlockType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/string_attribute_test.go b/resource/schema/string_attribute_test.go index 20f5ccf36..6bf70eda4 100644 --- a/resource/schema/string_attribute_test.go +++ b/resource/schema/string_attribute_test.go @@ -62,8 +62,6 @@ func TestStringAttributeApplyTerraform5AttributePathStep(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -110,8 +108,6 @@ func TestStringAttributeGetDeprecationMessage(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -145,8 +141,6 @@ func TestStringAttributeEqual(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -179,8 +173,6 @@ func TestStringAttributeGetDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -213,8 +205,6 @@ func TestStringAttributeGetMarkdownDescription(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -247,8 +237,6 @@ func TestStringAttributeGetType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -281,8 +269,6 @@ func TestStringAttributeIsComputed(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -315,8 +301,6 @@ func TestStringAttributeIsOptional(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +333,6 @@ func TestStringAttributeIsRequired(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -383,8 +365,6 @@ func TestStringAttributeIsSensitive(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -417,8 +397,6 @@ func TestStringAttributeIsWriteOnly(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -464,8 +442,6 @@ func TestStringAttributeStringDefaultValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -498,8 +474,6 @@ func TestStringAttributeStringPlanModifiers(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,8 +506,6 @@ func TestStringAttributeStringValidators(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,8 +568,6 @@ func TestStringAttributeValidateImplementation(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/stringdefault/static_value_test.go b/resource/schema/stringdefault/static_value_test.go index 96b0a786e..6fb04b7fc 100644 --- a/resource/schema/stringdefault/static_value_test.go +++ b/resource/schema/stringdefault/static_value_test.go @@ -30,8 +30,6 @@ func TestStaticStringDefaultString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/stringplanmodifier/requires_replace_if_configured_test.go b/resource/schema/stringplanmodifier/requires_replace_if_configured_test.go index 2a2bb1988..e9c2dee01 100644 --- a/resource/schema/stringplanmodifier/requires_replace_if_configured_test.go +++ b/resource/schema/stringplanmodifier/requires_replace_if_configured_test.go @@ -151,8 +151,6 @@ func TestRequiresReplaceIfConfiguredModifierPlanModifyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/stringplanmodifier/requires_replace_if_test.go b/resource/schema/stringplanmodifier/requires_replace_if_test.go index 997949b5d..5473f6d75 100644 --- a/resource/schema/stringplanmodifier/requires_replace_if_test.go +++ b/resource/schema/stringplanmodifier/requires_replace_if_test.go @@ -162,8 +162,6 @@ func TestRequiresReplaceIfModifierPlanModifyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/stringplanmodifier/requires_replace_test.go b/resource/schema/stringplanmodifier/requires_replace_test.go index 7e3fe5659..1ec274e28 100644 --- a/resource/schema/stringplanmodifier/requires_replace_test.go +++ b/resource/schema/stringplanmodifier/requires_replace_test.go @@ -134,8 +134,6 @@ func TestRequiresReplaceModifierPlanModifyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/resource/schema/stringplanmodifier/use_state_for_unknown_test.go b/resource/schema/stringplanmodifier/use_state_for_unknown_test.go index 0bdd1f513..6a686469c 100644 --- a/resource/schema/stringplanmodifier/use_state_for_unknown_test.go +++ b/resource/schema/stringplanmodifier/use_state_for_unknown_test.go @@ -121,8 +121,6 @@ func TestUseStateForUnknownModifierPlanModifyString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/config_test.go b/tfsdk/config_test.go index 10955c5b5..313e98232 100644 --- a/tfsdk/config_test.go +++ b/tfsdk/config_test.go @@ -105,8 +105,6 @@ func TestConfigGet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -183,7 +181,6 @@ func TestConfigGetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +269,6 @@ func TestConfigPathMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/convert_test.go b/tfsdk/convert_test.go index ee3a6b27b..4bc4efb2b 100644 --- a/tfsdk/convert_test.go +++ b/tfsdk/convert_test.go @@ -52,7 +52,6 @@ func TestConvert(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/ephemeral_result_data_test.go b/tfsdk/ephemeral_result_data_test.go index d1cbc5a1a..4e2cbb4da 100644 --- a/tfsdk/ephemeral_result_data_test.go +++ b/tfsdk/ephemeral_result_data_test.go @@ -105,8 +105,6 @@ func TestEphemeralResultDataGet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -183,7 +181,6 @@ func TestEphemeralResultDataGetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +269,6 @@ func TestEphemeralResultDataPathMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -364,7 +359,6 @@ func TestEphemeralResultDataSet(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -466,7 +460,6 @@ func TestEphemeralResultDataSetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/plan_test.go b/tfsdk/plan_test.go index d256d33dd..a430b3bf7 100644 --- a/tfsdk/plan_test.go +++ b/tfsdk/plan_test.go @@ -105,8 +105,6 @@ func TestPlanGet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -183,7 +181,6 @@ func TestPlanGetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +269,6 @@ func TestPlanPathMatches(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -364,7 +359,6 @@ func TestPlanSet(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -466,7 +460,6 @@ func TestPlanSetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/state_test.go b/tfsdk/state_test.go index ced1e21f8..2d9e30ea0 100644 --- a/tfsdk/state_test.go +++ b/tfsdk/state_test.go @@ -105,8 +105,6 @@ func TestStateGet(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -183,7 +181,6 @@ func TestStateGetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -274,7 +271,6 @@ func TestStateSet(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() @@ -376,7 +372,6 @@ func TestStateSetAttribute(t *testing.T) { } for name, tc := range testCases { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/value_as_test.go b/tfsdk/value_as_test.go index a5e0cf80c..d7eba4184 100644 --- a/tfsdk/value_as_test.go +++ b/tfsdk/value_as_test.go @@ -377,7 +377,6 @@ func TestValueAs(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/tfsdk/value_from_test.go b/tfsdk/value_from_test.go index 5fe219e30..27bff23f0 100644 --- a/tfsdk/value_from_test.go +++ b/tfsdk/value_from_test.go @@ -199,7 +199,6 @@ func TestValueFrom(t *testing.T) { } for name, tc := range tests { - name, tc := name, tc t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/bool_type_test.go b/types/basetypes/bool_type_test.go index 8d55d8309..2280dcfa3 100644 --- a/types/basetypes/bool_type_test.go +++ b/types/basetypes/bool_type_test.go @@ -42,7 +42,6 @@ func TestBoolTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/bool_value_test.go b/types/basetypes/bool_value_test.go index 001006891..b106a15f8 100644 --- a/types/basetypes/bool_value_test.go +++ b/types/basetypes/bool_value_test.go @@ -38,7 +38,6 @@ func TestBoolValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -156,7 +155,6 @@ func TestBoolValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -190,8 +188,6 @@ func TestBoolValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -226,8 +222,6 @@ func TestBoolValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -267,7 +261,6 @@ func TestBoolValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -305,8 +298,6 @@ func TestBoolValueValueBool(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -345,8 +336,6 @@ func TestBoolValueValueBoolPointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -377,8 +366,6 @@ func TestNewBoolPointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/dynamic_type_test.go b/types/basetypes/dynamic_type_test.go index 279a7d3d3..65fe89e34 100644 --- a/types/basetypes/dynamic_type_test.go +++ b/types/basetypes/dynamic_type_test.go @@ -38,7 +38,6 @@ func TestDynamicTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -402,7 +401,6 @@ func TestDynamicTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/dynamic_value_test.go b/types/basetypes/dynamic_value_test.go index ba8512d17..df0cb039d 100644 --- a/types/basetypes/dynamic_value_test.go +++ b/types/basetypes/dynamic_value_test.go @@ -43,8 +43,6 @@ func TestNewDynamicValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -158,7 +156,6 @@ func TestDynamicValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -385,7 +382,6 @@ func TestDynamicValueEqual(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -467,7 +463,6 @@ func TestDynamicValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -622,7 +617,6 @@ func TestDynamicValueIsUnderlyingValueNull(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -777,7 +771,6 @@ func TestDynamicValueIsUnderlyingValueUnknown(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/float32_type_test.go b/types/basetypes/float32_type_test.go index a409b35c5..49ff4960d 100644 --- a/types/basetypes/float32_type_test.go +++ b/types/basetypes/float32_type_test.go @@ -101,7 +101,6 @@ func TestFloat32TypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/float32_value_test.go b/types/basetypes/float32_value_test.go index 73781613f..9d6cc7fa5 100644 --- a/types/basetypes/float32_value_test.go +++ b/types/basetypes/float32_value_test.go @@ -60,7 +60,6 @@ func TestFloat32ValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -214,7 +213,6 @@ func TestFloat32ValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -248,8 +246,6 @@ func TestFloat32ValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -284,8 +280,6 @@ func TestFloat32ValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -352,7 +346,6 @@ func TestFloat32ValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -386,8 +379,6 @@ func TestFloat32ValueValueFloat32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -422,8 +413,6 @@ func TestFloat32ValueValueFloat32Pointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -454,8 +443,6 @@ func TestNewFloat32PointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -527,7 +514,6 @@ func TestFloat32ValueFloat32SemanticEquals(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/float64_type_test.go b/types/basetypes/float64_type_test.go index 4f1035254..2e86204d9 100644 --- a/types/basetypes/float64_type_test.go +++ b/types/basetypes/float64_type_test.go @@ -92,8 +92,6 @@ func TestFloat64TypeValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -189,7 +187,6 @@ func TestFloat64TypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/float64_value_test.go b/types/basetypes/float64_value_test.go index ca9dca6b9..37b5b6c55 100644 --- a/types/basetypes/float64_value_test.go +++ b/types/basetypes/float64_value_test.go @@ -72,7 +72,6 @@ func TestFloat64ValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -226,7 +225,6 @@ func TestFloat64ValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -260,8 +258,6 @@ func TestFloat64ValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -296,8 +292,6 @@ func TestFloat64ValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -357,7 +351,6 @@ func TestFloat64ValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -391,8 +384,6 @@ func TestFloat64ValueValueFloat64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -427,8 +418,6 @@ func TestFloat64ValueValueFloat64Pointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -459,8 +448,6 @@ func TestNewFloat64PointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -532,7 +519,6 @@ func TestFloat64ValueFloat64SemanticEquals(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/int32_type_test.go b/types/basetypes/int32_type_test.go index af5c8bdd0..f47ddd803 100644 --- a/types/basetypes/int32_type_test.go +++ b/types/basetypes/int32_type_test.go @@ -60,7 +60,6 @@ func TestInt32TypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/int32_value_test.go b/types/basetypes/int32_value_test.go index 15f505cac..89a366a64 100644 --- a/types/basetypes/int32_value_test.go +++ b/types/basetypes/int32_value_test.go @@ -37,7 +37,6 @@ func TestInt32ValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -115,7 +114,6 @@ func TestInt32ValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -149,8 +147,6 @@ func TestInt32ValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -185,8 +181,6 @@ func TestInt32ValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -238,7 +232,6 @@ func TestInt32ValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -272,8 +265,6 @@ func TestInt32ValueValueInt32(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -308,8 +299,6 @@ func TestInt32ValueValueInt32Pointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -340,8 +329,6 @@ func TestNewInt32PointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/int64_type_test.go b/types/basetypes/int64_type_test.go index f99866052..6eb115bc9 100644 --- a/types/basetypes/int64_type_test.go +++ b/types/basetypes/int64_type_test.go @@ -38,7 +38,6 @@ func TestInt64TypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/int64_value_test.go b/types/basetypes/int64_value_test.go index 8afbcc18a..ba2de237c 100644 --- a/types/basetypes/int64_value_test.go +++ b/types/basetypes/int64_value_test.go @@ -36,7 +36,6 @@ func TestInt64ValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -114,7 +113,6 @@ func TestInt64ValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -148,8 +146,6 @@ func TestInt64ValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -184,8 +180,6 @@ func TestInt64ValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -237,7 +231,6 @@ func TestInt64ValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -271,8 +264,6 @@ func TestInt64ValueValueInt64(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -307,8 +298,6 @@ func TestInt64ValueValueInt64Pointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -339,8 +328,6 @@ func TestNewInt64PointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/list_type_test.go b/types/basetypes/list_type_test.go index 6939a8f4b..9ecd65b82 100644 --- a/types/basetypes/list_type_test.go +++ b/types/basetypes/list_type_test.go @@ -30,8 +30,6 @@ func TestListTypeElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -96,7 +94,6 @@ func TestListTypeTerraformType(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -229,7 +226,6 @@ func TestListTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -299,7 +295,6 @@ func TestListTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -329,8 +324,6 @@ func TestListTypeString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/list_value_test.go b/types/basetypes/list_value_test.go index e63eb8088..2532d4bd4 100644 --- a/types/basetypes/list_value_test.go +++ b/types/basetypes/list_value_test.go @@ -66,8 +66,6 @@ func TestNewListValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -184,8 +182,6 @@ func TestNewListValueFrom(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -343,7 +339,6 @@ func TestListValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -395,8 +390,6 @@ func TestListValueElements(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -442,8 +435,6 @@ func TestListValueElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -635,7 +626,6 @@ func TestListValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -669,8 +659,6 @@ func TestListValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -705,8 +693,6 @@ func TestListValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -776,7 +762,6 @@ func TestListValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -845,7 +830,6 @@ func TestListValueType(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -899,8 +883,6 @@ func TestListTypeValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/map_type_test.go b/types/basetypes/map_type_test.go index f3bc1bd9f..d13edb259 100644 --- a/types/basetypes/map_type_test.go +++ b/types/basetypes/map_type_test.go @@ -31,8 +31,6 @@ func TestMapTypeElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -97,7 +95,6 @@ func TestMapTypeTerraformType(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -186,7 +183,6 @@ func TestMapTypeValueFromTerraform(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -276,7 +272,6 @@ func TestMapTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -306,8 +301,6 @@ func TestMapTypeString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/map_value_test.go b/types/basetypes/map_value_test.go index 0debecd9f..293fff102 100644 --- a/types/basetypes/map_value_test.go +++ b/types/basetypes/map_value_test.go @@ -66,8 +66,6 @@ func TestNewMapValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -184,8 +182,6 @@ func TestNewMapValueFrom(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -346,7 +342,6 @@ func TestMapValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -398,8 +393,6 @@ func TestMapValueElements(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -445,8 +438,6 @@ func TestMapValueElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -638,7 +629,6 @@ func TestMapValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -672,8 +662,6 @@ func TestMapValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -708,8 +696,6 @@ func TestMapValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -791,7 +777,6 @@ func TestMapValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -860,7 +845,6 @@ func TestMapValueType(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -914,8 +898,6 @@ func TestMapTypeValidate(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/number_type_test.go b/types/basetypes/number_type_test.go index 287e76035..153e8f9c2 100644 --- a/types/basetypes/number_type_test.go +++ b/types/basetypes/number_type_test.go @@ -39,7 +39,6 @@ func TestNumberTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/number_value_test.go b/types/basetypes/number_value_test.go index 27a25ac7d..08ca0c2bc 100644 --- a/types/basetypes/number_value_test.go +++ b/types/basetypes/number_value_test.go @@ -44,7 +44,6 @@ func TestNumberValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -167,7 +166,6 @@ func TestNumberValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -201,8 +199,6 @@ func TestNumberValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -237,8 +233,6 @@ func TestNumberValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -294,7 +288,6 @@ func TestNumberValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -332,8 +325,6 @@ func TestNumberValueValueBigFloat(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/object_type_test.go b/types/basetypes/object_type_test.go index 59d1ea838..0e1407578 100644 --- a/types/basetypes/object_type_test.go +++ b/types/basetypes/object_type_test.go @@ -220,7 +220,6 @@ func TestObjectTypeValueFromTerraform(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -398,7 +397,6 @@ func TestObjectTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -432,8 +430,6 @@ func TestObjectTypeString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/object_value_test.go b/types/basetypes/object_value_test.go index 73440f29c..4ccb41a41 100644 --- a/types/basetypes/object_value_test.go +++ b/types/basetypes/object_value_test.go @@ -153,8 +153,6 @@ func TestNewObjectValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -313,8 +311,6 @@ func TestNewObjectValueFrom(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -620,8 +616,6 @@ func TestObjectValueAttributes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -677,8 +671,6 @@ func TestObjectValueAttributeTypes(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1214,7 +1206,6 @@ func TestObjectValueToTerraformValue(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -1538,7 +1529,6 @@ func TestObjectValueEqual(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -1575,8 +1565,6 @@ func TestObjectValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1614,8 +1602,6 @@ func TestObjectValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1723,7 +1709,6 @@ func TestObjectValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -1828,7 +1813,6 @@ func TestObjectValueType(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/set_type_test.go b/types/basetypes/set_type_test.go index 4e645aa18..30b31222f 100644 --- a/types/basetypes/set_type_test.go +++ b/types/basetypes/set_type_test.go @@ -30,8 +30,6 @@ func TestSetTypeElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -96,7 +94,6 @@ func TestSetTypeTerraformType(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,7 +246,6 @@ func TestSetTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -319,7 +315,6 @@ func TestSetTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +344,6 @@ func TestSetTypeString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/set_value_test.go b/types/basetypes/set_value_test.go index 260382d0b..5dbfa25a7 100644 --- a/types/basetypes/set_value_test.go +++ b/types/basetypes/set_value_test.go @@ -285,7 +285,6 @@ func TestSetTypeValidate(t *testing.T) { }, } for name, testCase := range testCases { - name, testCase := name, testCase t.Run(name, func(t *testing.T) { t.Parallel() @@ -349,8 +348,6 @@ func TestNewSetValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -467,8 +464,6 @@ func TestNewSetValueFrom(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -596,7 +591,6 @@ func TestSetValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -648,8 +642,6 @@ func TestSetValueElements(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -695,8 +687,6 @@ func TestSetValueElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -888,7 +878,6 @@ func TestSetValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -922,8 +911,6 @@ func TestSetValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -958,8 +945,6 @@ func TestSetValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -1029,7 +1014,6 @@ func TestSetValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -1098,7 +1082,6 @@ func TestSetValueType(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/string_type_test.go b/types/basetypes/string_type_test.go index 097bb89c1..bcaf9e6d1 100644 --- a/types/basetypes/string_type_test.go +++ b/types/basetypes/string_type_test.go @@ -38,7 +38,6 @@ func TestStringTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() diff --git a/types/basetypes/string_value_test.go b/types/basetypes/string_value_test.go index 583fd2f20..92357fdce 100644 --- a/types/basetypes/string_value_test.go +++ b/types/basetypes/string_value_test.go @@ -34,7 +34,6 @@ func TestStringValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() ctx := context.Background() @@ -112,7 +111,6 @@ func TestStringValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -146,8 +144,6 @@ func TestStringValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -182,8 +178,6 @@ func TestStringValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -231,7 +225,6 @@ func TestStringValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -265,8 +258,6 @@ func TestStringValueValueString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -301,8 +292,6 @@ func TestStringValueValueStringPointer(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -333,8 +322,6 @@ func TestNewStringPointerValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/tuple_type_test.go b/types/basetypes/tuple_type_test.go index 65557abbd..18fa78005 100644 --- a/types/basetypes/tuple_type_test.go +++ b/types/basetypes/tuple_type_test.go @@ -98,7 +98,6 @@ func TestTupleTypeEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -151,8 +150,6 @@ func TestTupleTypeString(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -249,7 +246,6 @@ func TestTupleTypeTerraformType(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -438,7 +434,6 @@ func TestTupleTypeValueFromTerraform(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() diff --git a/types/basetypes/tuple_value_test.go b/types/basetypes/tuple_value_test.go index 34512babf..5736ed262 100644 --- a/types/basetypes/tuple_value_test.go +++ b/types/basetypes/tuple_value_test.go @@ -99,8 +99,6 @@ func TestNewTupleValue(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -142,8 +140,6 @@ func TestTupleValueElements(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -189,8 +185,6 @@ func TestTupleValueElementType(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -398,7 +392,6 @@ func TestTupleValueEqual(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -432,8 +425,6 @@ func TestTupleValueIsNull(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -468,8 +459,6 @@ func TestTupleValueIsUnknown(t *testing.T) { } for name, testCase := range testCases { - name, testCase := name, testCase - t.Run(name, func(t *testing.T) { t.Parallel() @@ -556,7 +545,6 @@ func TestTupleValueString(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -635,7 +623,6 @@ func TestTupleValueType(t *testing.T) { } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel() @@ -717,7 +704,6 @@ func TestTupleValueToTerraformValue(t *testing.T) { }, } for name, test := range tests { - name, test := name, test t.Run(name, func(t *testing.T) { t.Parallel()