JuliaCollections / LRUCache.jl
Showing 1 of 1 files from the diff.

@@ -7,7 +7,6 @@
Loading
7 7
using Base: Callable
8 8
9 9
_constone(x) = 1
10 -
function _no_callback end
11 10
12 11
# Default cache size
13 12
mutable struct LRU{K,V} <: AbstractDict{K,V}
@@ -91,7 +90,7 @@
Loading
91 90
        _unsafe_resize!(lru, evictions)
92 91
        return v
93 92
    end
94 -
    _finalize_evicitions!(lru.finalizer, evictions)
93 +
    _finalize_evictions!(lru.finalizer, evictions)
95 94
    return v
96 95
end
97 96
function Base.get!(default::Callable, lru::LRU{K, V}, key) where {K, V}
@@ -114,7 +113,7 @@
Loading
114 113
        _unsafe_resize!(lru, evictions)
115 114
    end
116 115
    unlock(lru.lock)
117 -
    _finalize_evicitions!(lru.finalizer, evictions)
116 +
    _finalize_evictions!(lru.finalizer, evictions)
118 117
    return v
119 118
end
120 119
@@ -158,7 +157,7 @@
Loading
158 157
        end
159 158
        _unsafe_resize!(lru, evictions)
160 159
    end
161 -
    _finalize_evicitions!(lru.finalizer, evictions)
160 +
    _finalize_evictions!(lru.finalizer, evictions)
162 161
    return lru
163 162
end
164 163
@@ -181,7 +180,7 @@
Loading
181 180
    lock(lru.lock) do
182 181
        _unsafe_resize!(lru, evictions, maxsize)
183 182
    end
184 -
    _finalize_evicitions!(lru.finalizer, evictions)
183 +
    _finalize_evictions!(lru.finalizer, evictions)
185 184
    return lru
186 185
end
187 186
@@ -222,11 +221,11 @@
Loading
222 221
            _unsafe_resize!(lru, evictions, 0)
223 222
        end
224 223
    end
225 -
    _finalize_evicitions!(lru.finalizer, evictions)
224 +
    _finalize_evictions!(lru.finalizer, evictions)
226 225
    return lru
227 226
end
228 227
229 -
function _finalize_evicitions!(finalizer, evictions)
228 +
function _finalize_evictions!(finalizer, evictions)
230 229
    for (key, value) in evictions
231 230
        finalizer(key, value)
232 231
    end
Files Coverage
src 76.42%
Project Totals (2 files) 76.42%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading