Skip to content

Commit

Permalink
Update calculate_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ravyolii committed Dec 15, 2022
1 parent 11f7112 commit 88c4f0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions calculate/calculate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"code-complexity/options"
"code-complexity/test_resources"
"io/fs"
"io/ioutil"
"math"
"os"
"path/filepath"
Expand Down Expand Up @@ -51,7 +50,7 @@ func touch(filePath string) {
func TestIncludeExcludePatterns(t *testing.T) {
r := assert.New(t)

basePath, err := ioutil.TempDir("", "")
basePath, err := os.MkdirTemp("", "")
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -125,7 +124,7 @@ func TestEncodings(t *testing.T) {
}
sourcePath := filepath.Join(wdPath, "..", "test_resources", "encoding")

basePath, err := ioutil.TempDir("", "")
basePath, err := os.MkdirTemp("", "")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 88c4f0d

Please sign in to comment.