File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
internal/testing/testtypes Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 99
1010 "github.com/hashicorp/terraform-plugin-framework/attr"
1111 "github.com/hashicorp/terraform-plugin-framework/diag"
12- "github.com/hashicorp/terraform-plugin-framework/types"
1312 "github.com/hashicorp/terraform-plugin-framework/types/basetypes"
1413 "github.com/hashicorp/terraform-plugin-go/tftypes"
1514)
@@ -25,11 +24,11 @@ var (
2524type StringTypeWithSemanticEquals struct {
2625 basetypes.StringType
2726
28- // Will always return true for semantic equality
27+ // Will always return this boolean for semantic equality
2928 SemanticEquals bool
3029
31- // Will only return semantic equality as true if the string matches this
32- SemanticallyEqualTo types. String
30+ // Will only return semantic equality as true if the attr.Value matches this
31+ SemanticallyEqualTo attr. Value
3332
3433 SemanticEqualsDiagnostics diag.Diagnostics
3534}
@@ -98,10 +97,10 @@ func (t StringTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
9897type StringValueWithSemanticEquals struct {
9998 basetypes.StringValue
10099
101- // Will always return true for semantic equality
100+ // Will always return this boolean for semantic equality
102101 SemanticEquals bool
103102
104- // Will only return semantic equality as true if the string matches this
103+ // Will only return semantic equality as true if the attr.Value matches this
105104 SemanticallyEqualTo attr.Value
106105
107106 SemanticEqualsDiagnostics diag.Diagnostics
You can’t perform that action at this time.
0 commit comments