mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
all: update _test.go files for ioutil changes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user