@@ -668,7 +668,7 @@ func TestReplaceText(t *testing.T) {
668668 changes [filename ] = string (source )
669669 }
670670 if diff := cmp .Diff (test .want , changes ); diff != "" {
671- t .Errorf (diff )
671+ t .Error (diff )
672672 }
673673 })
674674 }
@@ -757,7 +757,7 @@ func TestInsertText(t *testing.T) {
757757 changes [filename ] = string (source )
758758 }
759759 if diff := cmp .Diff (test .want , changes ); diff != "" {
760- t .Errorf (diff )
760+ t .Error (diff )
761761 }
762762 })
763763 }
@@ -821,7 +821,7 @@ func TestRemove(t *testing.T) {
821821 changes [filename ] = string (source )
822822 }
823823 if diff := cmp .Diff (test .want , changes ); diff != "" {
824- t .Errorf (diff )
824+ t .Error (diff )
825825 }
826826 })
827827 }
@@ -1039,7 +1039,7 @@ locals {
10391039 }
10401040
10411041 if diff := cmp .Diff (test .want , string (fixer .changes ["main.tf" ])); diff != "" {
1042- t .Errorf (diff )
1042+ t .Error (diff )
10431043 }
10441044 })
10451045 }
@@ -1278,7 +1278,7 @@ baz = 1`,
12781278 }
12791279
12801280 if diff := cmp .Diff (test .want , string (fixer .changes ["main.tf" ])); diff != "" {
1281- t .Errorf (diff )
1281+ t .Error (diff )
12821282 }
12831283 })
12841284 }
@@ -1337,7 +1337,7 @@ block {
13371337 }
13381338
13391339 if diff := cmp .Diff (test .want , string (fixer .changes ["main.tf" ])); diff != "" {
1340- t .Errorf (diff )
1340+ t .Error (diff )
13411341 }
13421342 })
13431343 }
@@ -1378,7 +1378,7 @@ func TestTextAt(t *testing.T) {
13781378 fixer := NewFixer (test .src )
13791379 got := fixer .TextAt (test .rng )
13801380 if diff := cmp .Diff (test .want , got ); diff != "" {
1381- t .Errorf (diff )
1381+ t .Error (diff )
13821382 }
13831383 })
13841384 }
@@ -1504,7 +1504,7 @@ func TestValueText(t *testing.T) {
15041504 fixer := NewFixer (nil )
15051505 got := fixer .ValueText (test .value )
15061506 if diff := cmp .Diff (test .want , got ); diff != "" {
1507- t .Errorf (diff )
1507+ t .Error (diff )
15081508 }
15091509 })
15101510 }
@@ -1551,7 +1551,7 @@ func TestRangeTo(t *testing.T) {
15511551
15521552 got := fixer .RangeTo (test .to , "" , start )
15531553 if diff := cmp .Diff (test .want , got ); diff != "" {
1554- t .Errorf (diff )
1554+ t .Error (diff )
15551555 }
15561556 })
15571557 }
@@ -1600,10 +1600,10 @@ foo = 1
16001600 }
16011601
16021602 if diff := cmp .Diff (src , fixer .sources ); diff != "" {
1603- t .Errorf (diff )
1603+ t .Error (diff )
16041604 }
16051605 if diff := cmp .Diff (fixer .Changes (), changed ); diff != "" {
1606- t .Errorf (diff )
1606+ t .Error (diff )
16071607 }
16081608 if ! fixer .HasChanges () {
16091609 t .Errorf ("unexpected changes: %#v" , fixer .Changes ())
@@ -1624,7 +1624,7 @@ barbaz = 2
16241624 }
16251625
16261626 if diff := cmp .Diff (fixer .Changes (), fixed ); diff != "" {
1627- t .Errorf (diff )
1627+ t .Error (diff )
16281628 }
16291629 if len (fixer .shifts ) != 2 {
16301630 t .Errorf ("unexpected shifts: %#v" , fixer .shifts )
@@ -1634,7 +1634,7 @@ barbaz = 2
16341634 fixer .ApplyChanges ()
16351635
16361636 if diff := cmp .Diff (fixed , fixer .sources ); diff != "" {
1637- t .Errorf (diff )
1637+ t .Error (diff )
16381638 }
16391639 if len (fixer .Changes ()) != 0 {
16401640 t .Errorf ("unexpected changes: %#v" , fixer .Changes ())
@@ -1707,7 +1707,7 @@ func TestStashChanges(t *testing.T) {
17071707 }
17081708
17091709 if diff := cmp .Diff (test .want , string (fixer .changes ["main.tf" ])); diff != "" {
1710- t .Errorf (diff )
1710+ t .Error (diff )
17111711 }
17121712 if test .shifts != len (fixer .shifts ) {
17131713 t .Errorf ("shifts: want %d, got %d" , test .shifts , len (fixer .shifts ))
0 commit comments