Skip to content

Commit 9249fde

Browse files
docs: correct spaces
1 parent cd4d9e3 commit 9249fde

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

website/docs/plugin/testing/acceptance-tests/known-value-checks/bool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestExpectKnownValue_CheckState_BoolFunc(t *testing.T) {
6666
if !v {
6767
return fmt.Errorf("expected true, got %t", v)
6868
}
69-
return nil
69+
return nil
7070
}),
7171
),
7272
},

website/docs/plugin/testing/acceptance-tests/known-value-checks/float64.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestExpectKnownValue_CheckState_Float64Func(t *testing.T) {
6666
if v > 1.0 && v < 5.0 {
6767
return fmt.Errorf("value must be between 1.0 and 5.0")
6868
}
69-
return nil
69+
return nil
7070
}),
7171
),
7272
},

website/docs/plugin/testing/acceptance-tests/known-value-checks/int32.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ func TestExpectKnownValue_CheckState_Int32Func(t *testing.T) {
6363
"test_resource.one",
6464
tfjsonpath.New("configurable_attribute"),
6565
knownvalue.Int32Func(func(v int32) error {
66-
if v < 1 && v > 12 {
67-
return fmt.Errorf("range cannot be less than 1 or greater than 12")
66+
if v > 1 && v < 12 {
67+
return fmt.Errorf("value must be between 1 and 12")
6868
}
69-
return nil
69+
return nil
7070
}),
7171
),
7272
},

website/docs/plugin/testing/acceptance-tests/known-value-checks/int64.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestExpectKnownValue_CheckState_Int64Func(t *testing.T) {
6666
if v > 1 && v < 12 {
6767
return fmt.Errorf("value must be between 1 and 12")
6868
}
69-
return nil
69+
return nil
7070
}),
7171
),
7272
},

website/docs/plugin/testing/acceptance-tests/known-value-checks/number.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ func TestExpectKnownValue_CheckState_NumberFunc(t *testing.T) {
6868
"test_resource.one",
6969
tfjsonpath.New("configurable_attribute"),
7070
knownvalue.NumberFunc(func(v *big.Float) error {
71-
if err := testConfigurableAttribute(v); err != nil {
71+
if err := testConfigurableAttribute(v); err != nil {
7272
return fmt.Errorf("attribute validation failed: %w", err)
7373
}
74-
return nil
74+
return nil
7575
}),
7676
),
7777
},

website/docs/plugin/testing/acceptance-tests/known-value-checks/string.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ func TestExpectKnownValue_CheckState_StringFunc(t *testing.T) {
9393
"test_resource.one",
9494
tfjsonpath.New("configurable_attribute"),
9595
knownvalue.StringFunc(func(v string) error {
96-
if !strings.HasPrefix(v, "str") {
96+
if !strings.HasPrefix(v, "str") {
9797
return fmt.Errorf("value must start with 'str'")
9898
}
99-
return nil
99+
return nil
100100
}),
101101
),
102102
},

0 commit comments

Comments
 (0)