@@ -3,7 +3,7 @@ package geojson
33import (
44 "bytes"
55 "encoding/json"
6- "io/ioutil "
6+ "os "
77 "reflect"
88 "strings"
99 "testing"
@@ -424,7 +424,7 @@ func TestFeature_MarshalBSON_extraMembers(t *testing.T) {
424424// }
425425
426426func BenchmarkFeatureMarshalJSON (b * testing.B ) {
427- data , err := ioutil .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
427+ data , err := os .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
428428 if err != nil {
429429 b .Fatalf ("could not open file: %v" , err )
430430 }
@@ -446,7 +446,7 @@ func BenchmarkFeatureMarshalJSON(b *testing.B) {
446446}
447447
448448func BenchmarkFeatureUnmarshalJSON (b * testing.B ) {
449- data , err := ioutil .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
449+ data , err := os .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
450450 if err != nil {
451451 b .Fatalf ("could not open file: %v" , err )
452452 }
@@ -463,7 +463,7 @@ func BenchmarkFeatureUnmarshalJSON(b *testing.B) {
463463}
464464
465465func BenchmarkFeatureMarshalBSON (b * testing.B ) {
466- data , err := ioutil .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
466+ data , err := os .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
467467 if err != nil {
468468 b .Fatalf ("could not open file: %v" , err )
469469 }
@@ -485,7 +485,7 @@ func BenchmarkFeatureMarshalBSON(b *testing.B) {
485485}
486486
487487func BenchmarkFeatureUnmarshalBSON (b * testing.B ) {
488- data , err := ioutil .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
488+ data , err := os .ReadFile ("../encoding/mvt/testdata/16-17896-24449.json" )
489489 if err != nil {
490490 b .Fatalf ("could not open file: %v" , err )
491491 }
0 commit comments