Skip to content

Commit

Permalink
Merge pull request #40 from noqcks/benji.visser/remove-deprecated-iou…
Browse files Browse the repository at this point in the history
…til-usage

Remove deprecated usage of ioutil
  • Loading branch information
sschuberth committed Jun 29, 2023
2 parents 584b53a + 8fce011 commit d729287
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packageurl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package packageurl_test
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"reflect"
"regexp"
"strings"
Expand Down Expand Up @@ -122,7 +122,7 @@ func (t TestFixture) Qualifiers() packageurl.Qualifiers {
// results.
func TestFromStringExamples(t *testing.T) {
// Read the json file
data, err := ioutil.ReadFile("testdata/test-suite-data.json")
data, err := os.ReadFile("testdata/test-suite-data.json")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -182,7 +182,7 @@ func TestFromStringExamples(t *testing.T) {
// the expected format.
func TestToStringExamples(t *testing.T) {
// Read the json file
data, err := ioutil.ReadFile("testdata/test-suite-data.json")
data, err := os.ReadFile("testdata/test-suite-data.json")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -221,7 +221,7 @@ func TestToStringExamples(t *testing.T) {
// equivalent with the ToString method.
func TestStringer(t *testing.T) {
// Read the json file
data, err := ioutil.ReadFile("testdata/test-suite-data.json")
data, err := os.ReadFile("testdata/test-suite-data.json")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit d729287

Please sign in to comment.