Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Jan 17, 2025
1 parent 380f2db commit 97056b8
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions pkg/tests/diff_test/detailed_diff_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hexops/autogold/v2"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"
"github.com/zclconf/go-cty/cty"

crosstests "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/internal/tests/cross-tests"
)

func setScenarios() []diffScenario[[]string] {
Expand Down Expand Up @@ -67,31 +63,6 @@ func setScenarios() []diffScenario[[]string] {
}
}

func runSetTest(
schema schema.Resource, valueMaker func(*[]string) map[string]cty.Value, val1 *[]string, val2 *[]string,
disableAccurateBridgePreviews bool,
) func(t *testing.T) {
return func(t *testing.T) {
t.Parallel()
initialValue := valueMaker(val1)
changeValue := valueMaker(val2)

opts := []crosstests.DiffOption{}
if disableAccurateBridgePreviews {
opts = append(opts, crosstests.DiffDisableAccurateBridgePreviews())
}
diff := crosstests.Diff(t, &schema, initialValue, changeValue, opts...)

autogold.ExpectFile(t, testOutput{
initialValue: val1,
changeValue: val2,
tfOut: diff.TFOut,
pulumiOut: diff.PulumiOut,
detailedDiff: diff.PulumiDiff.DetailedDiff,
})
}
}

func TestSDKv2DetailedDiffSetAttribute(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 97056b8

Please sign in to comment.