mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Remove io/ioutil s
This commit is contained in:
parent
4bade05173
commit
90c46e0829
2 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ package goldmark_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/yuin/goldmark"
|
. "github.com/yuin/goldmark"
|
||||||
|
|
@ -20,7 +20,7 @@ type commonmarkSpecTestCase struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSpec(t *testing.T) {
|
func TestSpec(t *testing.T) {
|
||||||
bs, err := ioutil.ReadFile("_test/spec.json")
|
bs, err := os.ReadFile("_test/spec.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package fuzz
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/yuin/goldmark"
|
"github.com/yuin/goldmark"
|
||||||
|
|
@ -42,7 +42,7 @@ func fuzz(f *testing.F) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func FuzzDefault(f *testing.F) {
|
func FuzzDefault(f *testing.F) {
|
||||||
bs, err := ioutil.ReadFile("../_test/spec.json")
|
bs, err := os.ReadFile("../_test/spec.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue