Skip to content

Commit 99e4bf3

Browse files
lint
1 parent d007cd3 commit 99e4bf3

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

pkg/tests/diff_test/detailed_diff_set_test.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import (
66

77
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
9-
"github.com/hexops/autogold/v2"
109
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"
11-
"github.com/zclconf/go-cty/cty"
12-
13-
crosstests "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/internal/tests/cross-tests"
1410
)
1511

1612
func setScenarios() []diffScenario[[]string] {
@@ -67,31 +63,6 @@ func setScenarios() []diffScenario[[]string] {
6763
}
6864
}
6965

70-
func runSetTest(
71-
schema schema.Resource, valueMaker func(*[]string) map[string]cty.Value, val1 *[]string, val2 *[]string,
72-
disableAccurateBridgePreviews bool,
73-
) func(t *testing.T) {
74-
return func(t *testing.T) {
75-
t.Parallel()
76-
initialValue := valueMaker(val1)
77-
changeValue := valueMaker(val2)
78-
79-
opts := []crosstests.DiffOption{}
80-
if disableAccurateBridgePreviews {
81-
opts = append(opts, crosstests.DiffDisableAccurateBridgePreviews())
82-
}
83-
diff := crosstests.Diff(t, &schema, initialValue, changeValue, opts...)
84-
85-
autogold.ExpectFile(t, testOutput{
86-
initialValue: val1,
87-
changeValue: val2,
88-
tfOut: diff.TFOut,
89-
pulumiOut: diff.PulumiOut,
90-
detailedDiff: diff.PulumiDiff.DetailedDiff,
91-
})
92-
}
93-
}
94-
9566
func TestSDKv2DetailedDiffSetAttribute(t *testing.T) {
9667
t.Parallel()
9768

0 commit comments

Comments
 (0)