File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
website/docs/plugin/testing/acceptance-tests/known-value-checks Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments