Skip to content

Commit

Permalink
Add stub test for cache_info() clear_disk_cache!()
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 17, 2024
1 parent f794e28 commit 52ae57f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/caching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ if get(ENV, "CI", false) == "true"
clear_disk_cache!()
end

L = length(sprint(cache_info))
L = length(sprint(SUNRepresentations.cache_info))
for N in 3:4
precompute_disk_cache(N, 1)
L′ = length(sprint(cache_info))
@test L′ >= L
global L = L′
end
clear_disk_cache!(3, Float64)
6 changes: 6 additions & 0 deletions test/sectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,10 @@ for I in sectorlist
string(round(tf - ti; sigdigits=3)),
" seconds."; bold=true, color=Base.info_color())
println()

try
s = sprint(SUNRepresentations.cache_info)
catch
@test false
end
end

0 comments on commit 52ae57f

Please sign in to comment.