Skip to content

Commit

Permalink
small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 2, 2024
1 parent 6bd77aa commit 25ae4ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (s *CustomizableSchema) SetReadOnly(path ...string) *CustomizableSchema {
// points to an attribute, not a block.
func (s *CustomizableSchema) ConvertToAttribute(path ...string) *CustomizableSchema {
if len(path) == 0 {
panic(fmt.Errorf("ToAttribute called on root schema. %s", common.TerraformBugErrorMessage))
panic(fmt.Errorf("ConvertToAttribute called on root schema. %s", common.TerraformBugErrorMessage))
}
field := path[len(path)-1]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (m mockValidator) ValidateObject(context.Context, validator.ObjectRequest,
var _ validator.List = mockValidator{}
var _ validator.Object = mockValidator{}

func TestCustomizeSchema_ToAttribute(t *testing.T) {
func TestCustomizeSchema_ConvertToAttribute(t *testing.T) {
v := mockValidator{}
pm := mockPlanModifier{}
testCases := []struct {
Expand Down

0 comments on commit 25ae4ba

Please sign in to comment.