Skip to content

Commit 5a56b5b

Browse files
committed
Update calculate_test.go
1 parent 4ca5744 commit 5a56b5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

calculate/calculate_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"code-complexity/options"
55
"code-complexity/test_resources"
66
"io/fs"
7-
"io/ioutil"
87
"math"
98
"os"
109
"path/filepath"
@@ -51,7 +50,7 @@ func touch(filePath string) {
5150
func TestIncludeExcludePatterns(t *testing.T) {
5251
r := assert.New(t)
5352

54-
basePath, err := ioutil.TempDir("", "")
53+
basePath, err := os.MkdirTemp("", "")
5554
if err != nil {
5655
panic(err)
5756
}
@@ -125,7 +124,7 @@ func TestEncodings(t *testing.T) {
125124
}
126125
sourcePath := filepath.Join(wdPath, "..", "test_resources", "encoding")
127126

128-
basePath, err := ioutil.TempDir("", "")
127+
basePath, err := os.MkdirTemp("", "")
129128
if err != nil {
130129
panic(err)
131130
}

0 commit comments

Comments
 (0)