opentofu/internal/configs
Martin Atkins 30fcff72d8 tofu+configload: Test utilities take testing.TB
A lot of our testing utilities were written before the introduction of the
testing.TB interface that represents what *testing.T and *testing.B have
in common, and those that weren't have followed precedent from those that
were in directly expecting *testing.T.

Using testing.TB instead makes these helpers usable from both normal tests
and testing benchmark functions, since they only use methods that are
available in both contexts.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-02-19 08:15:29 -08:00
..
configload tofu+configload: Test utilities take testing.TB 2025-02-19 08:15:29 -08:00
configschema Dereference attributes during filtering to avoid schema cache altering (#2468) 2025-02-04 17:05:08 +02:00
hcl2shim make tofu test generate dynamic mock values (#2245) 2024-12-04 16:22:54 +02:00
testdata Fix error message when default value of variable is of wrong type (#2444) 2025-01-29 10:50:45 +02:00
backend.go Handle static variable secret flag (#2045) 2024-10-03 10:46:58 -04:00
checks.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
cloud.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
compat_shim.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
config_build_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
config_build.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
config_test.go Add a new warning when a provider cannot be downloaded and it was requested by an implicit usage (#2479) 2025-02-12 18:40:54 +02:00
config.go Add a new warning when a provider cannot be downloaded and it was requested by an implicit usage (#2479) 2025-02-12 18:40:54 +02:00
container.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
depends_on.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
doc.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
escaping_blocks_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
experiments_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
experiments.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
import_test.go Make import block's to possibly more dynamic (#1270) 2024-04-15 13:06:35 +03:00
import.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
module_call_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
module_call.go Temporarily disable the complexity-related lint rules 2025-01-03 10:41:05 -05:00
module_merge_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
module_merge.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
module_test.go Fix: When a RequiredProvider is having syntax errors, return an empty one to allow further validations to generate their diags (#2408) 2025-01-28 15:47:17 +02:00
module.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
moved_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
moved.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
named_values.go Fix error message when default value of variable is of wrong type (#2444) 2025-01-29 10:50:45 +02:00
parser_config_dir_test.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
parser_config_dir.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
parser_config_test.go Fix error message when default value of variable is of wrong type (#2444) 2025-01-29 10:50:45 +02:00
parser_config.go Initial wiring of encryption through the command package (#1316) 2024-03-07 08:55:57 -05:00
parser_test.go Use import provider instead of guess (#2336) 2025-01-24 17:18:08 -05:00
parser.go Avoid copies on calls to parser.Sources() (#1811) 2024-07-29 16:15:51 -04:00
provider_meta.go Catch invalid name in provider_meta before it causes a crash (#2347) 2025-01-09 14:36:56 +00:00
provider_requirements_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
provider_requirements.go Fix: When a RequiredProvider is having syntax errors, return an empty one to allow further validations to generate their diags (#2408) 2025-01-28 15:47:17 +02:00
provider_test.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
provider_validation.go Temporarily disable the complexity-related lint rules 2025-01-03 10:41:05 -05:00
provider.go evalchecks: Suggest -exclude as a workaround for unknown count/for_each 2025-01-02 13:24:11 -08:00
provisioner_test.go feat: Add support for tofu.workspace which will be resolved in the same way as terraform.workspace (#1305) 2024-08-01 08:14:34 -04:00
provisioner.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
provisioneronfailure_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provisionerwhen_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
removed_test.go Static Evaluation Base, Module Sources, Backend Config (#1718) 2024-06-24 09:13:07 -04:00
removed.go Add support for removed block (#1158) 2024-02-21 10:31:44 +02:00
resource.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
shim.go add automated copyright header check (#1696) 2024-06-03 16:49:36 +03:00
state_encryption.go Integrate Encryption into State Backends (#1288) 2024-03-04 09:25:14 -05:00
static_evaluator_test.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
static_evaluator.go Handle static variable secret flag (#2045) 2024-10-03 10:46:58 -04:00
static_scope_test.go Require static scope stack to have at least one entry 2024-12-11 10:14:49 -08:00
static_scope.go Require static scope stack to have at least one entry 2024-12-11 10:14:49 -08:00
test_file_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
test_file.go implement override resources for mock providers (#2168) 2024-12-03 11:24:26 -05:00
variable_type_hint.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
variabletypehint_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
version_constraint.go Handle static variable secret flag (#2045) 2024-10-03 10:46:58 -04:00