all: replace deprecated io/ioutil with io and os (#3509)

This commit is contained in:
Oleksandr Redko
2023-09-25 21:41:59 +03:00
committed by GitHub
parent 224a2805a4
commit 899ba72505
29 changed files with 76 additions and 95 deletions

View File

@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"go/constant"
"io/ioutil"
"os"
"regexp"
"runtime"
"sort"
@ -1331,7 +1331,7 @@ func TestCallFunction(t *testing.T) {
}
func testCallFunctionSetBreakpoint(t *testing.T, p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
buf, err := ioutil.ReadFile(fixture.Source)
buf, err := os.ReadFile(fixture.Source)
assertNoError(err, t, "ReadFile")
for i, line := range strings.Split(string(buf), "\n") {
if strings.Contains(line, "// breakpoint here") {