Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Port tests to the `busted` test runner | Waqas Hussain | 2017-09-15 | 1 | -309/+0 |
| | |||||
* | tests: Trim trailing whitespace | Kim Alvefur | 2017-03-06 | 1 | -17/+17 |
| | |||||
* | test_util_cache: wrap individual test blocks in do-end [luacheck] | Anton Shestakov | 2016-07-14 | 1 | -123/+134 |
| | |||||
* | test_util_cache: rename a variable (c is already defined) [luacheck] | Anton Shestakov | 2016-07-09 | 1 | -2/+2 |
| | |||||
* | test_util_cache: remove unused argument c3 [luacheck] | Anton Shestakov | 2016-07-09 | 1 | -1/+1 |
| | |||||
* | tests: util.cache: Tests for different return values of on_evict | Matthew Wild | 2016-03-17 | 1 | -0/+24 |
| | |||||
* | util.cache: Change behaviour of on_evict (and tests). Now accepts false ↵ | Matthew Wild | 2016-03-17 | 1 | -9/+29 |
| | | | | instead of a function (never evict), or on_evict can return false to prevent eviction. | ||||
* | util.cache: Add head() and tail() methods (and tests) | Matthew Wild | 2016-03-17 | 1 | -1/+26 |
| | |||||
* | util.cache (and tests): Call on_evict after insertion of the new key, so ↵ | Matthew Wild | 2015-12-22 | 1 | -0/+55 |
| | | | | inside on_evict we can be more certain about the current state of the cache (i.e. full, new item added, old item removed) | ||||
* | tests: Add tests for util.cache | Matthew Wild | 2015-11-26 | 1 | -0/+174 |