We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1872d78 commit 777367bCopy full SHA for 777367b
test/cache_macro.jl
@@ -30,6 +30,8 @@ end
30
31
set_limit!(f1, 10)
32
@test get_limit(f1) == 10
33
+ SymbolicUtils.set_retain_fraction!(f1, 0.1)
34
+ @test SymbolicUtils.get_retain_fraction(f1) == 0.1
35
for i in 1:8
36
xx = setmetadata(xx, Int, i)
37
f1(xx)
@@ -56,8 +58,6 @@ end
56
58
@test length(cache) == 0
57
59
stats = SymbolicUtils.get_stats(f1)
60
@test stats.hits == stats.misses == stats.clears == 0
- SymbolicUtils.set_retain_fraction!(f1, 0.1)
- @test SymbolicUtils.get_retain_fraction(f1) == 0.1
61
@test SymbolicUtils.is_caching_enabled(f1)
62
SymbolicUtils.toggle_caching!(f1, false)
63
@test !SymbolicUtils.is_caching_enabled(f1)
0 commit comments