prometheus/util/testutil
Marco Pracucci c461e22341
Improve fast regexp matcher cache (#482)
* Limit FastRegexMatcher by size (bytes) and add a TTL to each entry

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Add TestNewFastRegexMatcher_CacheSizeLimit

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Tolerate ristretto goroutines when checking goroutine leaks

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Tolerate ristretto goroutines when checking goroutine leaks

Signed-off-by: Marco Pracucci <marco@pracucci.com>

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-04-17 15:20:58 +02:00
..
context.go Adding unit tests for the util package (#4534) 2018-08-27 15:55:49 +01:00
directory.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
logging.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
port.go util/testutil: add RandomUnprivilegedPort function 2021-11-10 09:40:43 +01:00
roundtrip.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
testing.go Improve fast regexp matcher cache (#482) 2023-04-17 15:20:58 +02:00