Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.cache: Pass cache itself to eviction callback | Kim Alvefur | 2023-06-30 | 1 | -2/+1 |
| | | | | | | | Simplifies access to the cache without moving code around a lot given the currently common pattern of local some_cache = cache.new(size, function(k,v) end) | ||||
* | util.cache: Keep eviction candidate if callback resized to make room | Kim Alvefur | 2023-06-30 | 1 | -0/+21 |
| | | | | | Previously either the old or the new values would be rejected, even if the cache was resized to allow more items. | ||||
* | util.cache: Add some missing test cases | Matthew Wild | 2022-10-13 | 1 | -0/+52 |
| | | | | Found via mutation testing. | ||||
* | tests: Remove special-casing of Lua 5.1 | Kim Alvefur | 2022-07-02 | 1 | -1/+1 |
| | | | | Part of #1600 | ||||
* | util.cache: Add test for :table (fails on Lua 5.1) | Kim Alvefur | 2021-02-05 | 1 | -0/+24 |
| | |||||
* | util.cache tests: Add annotation to fix [luacheck] warning | Matthew Wild | 2018-09-17 | 1 | -1/+1 |
| | |||||
* | Port tests to the `busted` test runner | Waqas Hussain | 2017-09-15 | 1 | -0/+316 |