File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 77package spectest
88
99import (
10- "io/ioutil "
10+ "os "
1111 "path"
1212 "path/filepath"
1313 "strings"
@@ -22,7 +22,7 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
2222
2323 files := make ([]string , 0 )
2424
25- entries , err := ioutil .ReadDir (dir )
25+ entries , err := os .ReadDir (dir )
2626 require .NoError (t , err )
2727
2828 for _ , entry := range entries {
@@ -36,6 +36,9 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
3636 return files
3737}
3838
39+ // TestPath will construct a path to a test file in the specifications git
40+ // submodule. The path will be relative to the current package so a depth should
41+ // be provided to indicate how many directories to go up.
3942func TestPath (depth int , testDir string , subDirs ... string ) string {
4043 const basePath = "testdata/specifications/source/"
4144
You can’t perform that action at this time.
0 commit comments