File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " CoverageTools"
22uuid = " c36e975a-824b-4404-a568-ef97ca766997"
33authors = [" Iain Dunning <iaindunning@gmail.com>" ]
4- version = " 1.2.6 "
4+ version = " 1.2.7 "
55
66[compat ]
77julia = " 0.7, 1"
Original file line number Diff line number Diff line change @@ -241,4 +241,22 @@ end # testset
241241 end
242242end
243243
244+ @testset " CoverageTools.jl" begin
245+ @testset " clean_file" begin
246+ mktempdir () do tmp_dir
247+ cd (tmp_dir) do
248+ source_file = joinpath (tmp_dir, " foo.jl" )
249+ cov_file = joinpath (tmp_dir, " foo.jl.12345.cov" )
250+ touch (source_file)
251+ touch (cov_file)
252+ @test isfile (source_file)
253+ @test isfile (cov_file)
254+ CoverageTools. clean_file (source_file)
255+ @test isfile (source_file)
256+ @test ! isfile (cov_file)
257+ end
258+ end
259+ end
260+ end
261+
244262end # withenv
You can’t perform that action at this time.
0 commit comments