@@ -114,15 +114,6 @@ type providerFactories struct {
114114 protov6 protov6ProviderFactories
115115}
116116
117- func runProviderCommandApply (ctx context.Context , t testing.T , wd * plugintest.WorkingDir , factories * providerFactories ) error {
118- t .Helper ()
119-
120- fn := func () error {
121- return wd .Apply (ctx )
122- }
123- return runProviderCommand (ctx , t , wd , factories , fn )
124- }
125-
126117func runProviderCommandCreatePlan (ctx context.Context , t testing.T , wd * plugintest.WorkingDir , factories * providerFactories ) error {
127118 t .Helper ()
128119
@@ -132,23 +123,6 @@ func runProviderCommandCreatePlan(ctx context.Context, t testing.T, wd *pluginte
132123 return runProviderCommand (ctx , t , wd , factories , fn )
133124}
134125
135- func runProviderCommandGetStateJSON (ctx context.Context , t testing.T , wd * plugintest.WorkingDir , factories * providerFactories ) (* tfjson.State , error ) {
136- t .Helper ()
137-
138- var stateJSON * tfjson.State
139- fn := func () error {
140- var err error
141- stateJSON , err = wd .State (ctx )
142- return err
143- }
144- err := runProviderCommand (ctx , t , wd , factories , fn )
145- if err != nil {
146- return nil , err
147- }
148-
149- return stateJSON , nil
150- }
151-
152126func runProviderCommandSavedPlan (ctx context.Context , t testing.T , wd * plugintest.WorkingDir , factories * providerFactories ) (* tfjson.Plan , error ) {
153127 t .Helper ()
154128
0 commit comments