(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestInternalProviders(t *testing.T) { |
| 39 | m := Meta{ |
| 40 | WorkingDir: workdir.NewDir("."), |
| 41 | } |
| 42 | internal := m.internalProviders() |
| 43 | tfProvider, err := internal["terraform"]() |
| 44 | if err != nil { |
| 45 | t.Fatal(err) |
| 46 | } |
| 47 | |
| 48 | schema := tfProvider.GetProviderSchema(t.Context()) |
| 49 | _, found := schema.DataSources["terraform_remote_state"] |
| 50 | if !found { |
| 51 | t.Errorf("didn't find terraform_remote_state in internal \"terraform\" provider") |
| 52 | } |
| 53 | } |
nothing calls this directly
no test coverage detected