all: update _test.go files for ioutil changes

This commit is contained in:
Damian Gryski
2022-08-05 16:20:39 -07:00
committed by Ron Evans
parent 1784bcd728
commit f9ba99344a
9 changed files with 18 additions and 22 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package transform_test
import (
"go/token"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sort"
@@ -62,7 +62,7 @@ func TestAllocs2(t *testing.T) {
}
// Load expected test output (the OUT: lines).
testInput, err := ioutil.ReadFile("./testdata/allocs2.go")
testInput, err := os.ReadFile("./testdata/allocs2.go")
if err != nil {
t.Fatal("could not read test input:", err)
}