Skip to content

Commit

Permalink
comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle committed Jan 17, 2025
1 parent 7c44188 commit 49a7ef1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/testing/testtypes/stringwithsemanticequals.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/hashicorp/terraform-plugin-go/tftypes"
)
Expand All @@ -25,11 +24,11 @@ var (
type StringTypeWithSemanticEquals struct {
basetypes.StringType

// Will always return true for semantic equality
// Will always return this boolean for semantic equality
SemanticEquals bool

// Will only return semantic equality as true if the string matches this
SemanticallyEqualTo types.String
// Will only return semantic equality as true if the attr.Value matches this
SemanticallyEqualTo attr.Value

SemanticEqualsDiagnostics diag.Diagnostics
}
Expand Down Expand Up @@ -98,10 +97,10 @@ func (t StringTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
type StringValueWithSemanticEquals struct {
basetypes.StringValue

// Will always return true for semantic equality
// Will always return this boolean for semantic equality
SemanticEquals bool

// Will only return semantic equality as true if the string matches this
// Will only return semantic equality as true if the attr.Value matches this
SemanticallyEqualTo attr.Value

SemanticEqualsDiagnostics diag.Diagnostics
Expand Down

0 comments on commit 49a7ef1

Please sign in to comment.