• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jellydator / ttlcache / 12139686373
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3
DEFAULT BRANCH: master
Ran 03 Dec 2024 12:30PM UTC
Jobs 1
Files 4
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Dec 2024 12:30PM UTC coverage: 99.707% (+0.02%) from 99.687%
12139686373

push

github

web-flow
feat: New `WithMaxCost` option for custom cache capacity management strategies

* new option to define the max memory the cache can use in bytes

* cache.set updated to cope with memory limitations

* options updated to implement the suggested new option

* cache impl updated + tests

* dependencies updated

* imports organized

* readme updated to document the new configuration option

* better explanation in the example

* readme line removed by accident restored

* function renamed (typo fixed)

* wording fixed

* useless sentence removed

* costs renamed to cost

* cost used in tests simplified

* CostCalcFunc renamed to CostFunc

* costsCalcFunc renamed to costFunc

* updateExpirations moved

* totalCost renamed to maxCost

* WithTotalCost option renamed to WithMaxCost

* example in README updated

* signature of the WithMaxCost option changed

* readme updated

* Item impl updated to hold the current cost and the corresponding cost calculation function; new constructor expecting options

* cache impl updated to make use of the new item properties

* new item options

* tests for the new options

* new Item related tests

* cache tests fixed to make them compile

* item option implementation updated to become a private interface

* cache set test updated

* made new item related functions private + eviction reason renamed

* moved initial item cost calsulation to the constructor function

* test functions renamed to reflect the private nature of functions under test

* version tracking fixed

* small readme update

53 of 53 new or added lines in 3 files covered. (100.0%)

680 of 682 relevant lines covered (99.71%)

23.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12139686373.1 03 Dec 2024 12:30PM UTC 4
99.71
GitHub Action Run
Source Files on build 12139686373
  • Tree
  • List 4
  • Changed 4
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3cf8b60b on github
  • Prev Build on v3 (#12028763691)
  • Next Build on v3 (#12180785626)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc