mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 23:52:47 +08:00
all: replace uses of deprecated ioutil functions
This commit is contained in:
@@ -12,7 +12,7 @@ package ast_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"gonum.org/v1/gonum/graph/formats/dot"
|
||||
@@ -68,7 +68,7 @@ func TestParseFile(t *testing.T) {
|
||||
if len(g.out) > 0 {
|
||||
out = g.out
|
||||
}
|
||||
buf, err := ioutil.ReadFile(out)
|
||||
buf, err := os.ReadFile(out)
|
||||
if err != nil {
|
||||
t.Errorf("%q: unable to read file; %v", g.in, err)
|
||||
continue
|
||||
|
Reference in New Issue
Block a user