@@ -69,7 +69,7 @@ type SourceTestExpect struct {
6969}
7070
7171func readFixture (t * testing.T , name string ) []byte {
72- bin , err := ioutil .ReadFile (filepath .Join ("testdata" , name ))
72+ bin , err := os .ReadFile (filepath .Join ("testdata" , name ))
7373 if err != nil {
7474 t .Fatalf ("Unable to read test fixture %s: %v" , name , err )
7575 }
@@ -86,7 +86,7 @@ func writeSourceCache(t *testing.T, e *SourceTestExpect) {
8686 if perms == 0 {
8787 perms = 0644
8888 }
89- if err := ioutil .WriteFile (path , f .content , perms ); err != nil {
89+ if err := os .WriteFile (path , f .content , perms ); err != nil {
9090 t .Fatalf ("Unable to write cache file %s: %v" , path , err )
9191 }
9292 if err := acl .Chmod (path , perms ); err != nil {
@@ -109,7 +109,7 @@ func checkSourceCache(c *check.C, e *SourceTestExpect) {
109109 for _ , f := range e .cache {
110110 path := e .cachePath + f .suffix
111111 _ = acl .Chmod (path , 0644 ) // don't worry if this fails, reading it will catch the same problem
112- got , err := ioutil .ReadFile (path )
112+ got , err := os .ReadFile (path )
113113 c .DeepEqual (got , f .content , "Unexpected content for cache file '%s', err %v" , path , err )
114114 if f .suffix != "" {
115115 continue
0 commit comments