@@ -10,14 +10,19 @@ const GROUP = uppercase(
1010 get (ENV , " GROUP" , " ALL" )
1111 else
1212 only (match (pat, ARGS [arg_id]). captures)
13- end ,
13+ end
1414)
1515
16- " match files of the form `test_*.jl`, but exclude `*setup*.jl`"
16+ """
17+ match files of the form `test_*.jl`, but exclude `*setup*.jl`
18+ """
1719function istestfile (fn)
18- return endswith (fn, " .jl" ) && startswith (basename (fn), " test_" ) && ! contains (fn, " setup" )
20+ return endswith (fn, " .jl" ) && startswith (basename (fn), " test_" ) &&
21+ ! contains (fn, " setup" )
1922end
20- " match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
23+ """
24+ match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`
25+ """
2126function isexamplefile (fn)
2227 return endswith (fn, " .jl" ) && ! endswith (fn, " _notest.jl" ) && ! contains (fn, " setup" )
2328end
2631 # tests in groups based on folder structure
2732 for testgroup in filter (isdir, readdir (@__DIR__ ))
2833 if GROUP == " ALL" || GROUP == uppercase (testgroup)
29- for file in filter (istestfile, readdir (joinpath (@__DIR__ , testgroup); join = true ))
34+ for file in
35+ filter (istestfile, readdir (joinpath (@__DIR__ , testgroup); join = true ))
3036 @eval @safetestset $ file begin
3137 include ($ file)
3238 end
5561 :macrocall ,
5662 GlobalRef (Suppressor, Symbol (" @suppress" )),
5763 LineNumberNode (@__LINE__ , @__FILE__ ),
58- :(include ($ filename)),
64+ :(include ($ filename))
5965 )
6066 )
6167 end
0 commit comments