LCOV - code coverage report
Current view: top level - proxy/src/rate_limiter - limiter.rs (source / functions) Coverage Total Hit
Test: 322b88762cba8ea666f63cda880cccab6936bf37.info Lines: 85.9 % 483 415
Test Date: 2024-02-29 11:57:12 Functions: 67.9 % 84 57

Function Name Sort by function name Hit count Sort by function hit count
<proxy::rate_limiter::limiter::EndpointRateLimiter>::do_gc::{closure#0} 0
>::do_gc::{closure#0} 0
>>::do_gc::{closure#0} 0
::do_gc::{closure#0} 0
<proxy::rate_limiter::limiter::EndpointRateLimiter>::new_with_rand_and_hasher::{closure#0} 0
>>::new_with_rand_and_hasher::{closure#0} 0
::new_with_rand_and_hasher::{closure#0} 0
<proxy::rate_limiter::limiter::Limiter as reqwest_middleware::middleware::Middleware>::handle::{closure#0}::{closure#0} 0
<proxy::rate_limiter::limiter::Limiter as reqwest_middleware::middleware::Middleware>::handle::{closure#0}::{closure#1} 0
<proxy::rate_limiter::limiter::Limiter>::acquire_timeout::{closure#0}::{closure#1} 0
<proxy::rate_limiter::limiter::Limiter>::release::{closure#0}::{closure#0} 0
<proxy::rate_limiter::limiter::Limiter>::release::{closure#0}::{closure#1} 0
<proxy::rate_limiter::limiter::LimiterState as core::fmt::Debug>::fmt 0
::clone 0
::fmt 0
<proxy::rate_limiter::limiter::Outcome as core::fmt::Debug>::fmt 0
::clone 0
::eq 0
::fmt 0
<proxy::rate_limiter::limiter::Outcome>::from_reqwest_error 0
<proxy::rate_limiter::limiter::RateBucketInfo as core::fmt::Debug>::fmt 0
<proxy::rate_limiter::limiter::RedisRateLimiter>::check 0
<proxy::rate_limiter::limiter::RedisRateLimiter>::check::{closure#0} 0
<proxy::rate_limiter::limiter::RedisRateLimiter>::new 0
<proxy::rate_limiter::limiter::Token as core::fmt::Debug>::fmt 0
<proxy::rate_limiter::limiter::EndpointRateLimiter>::new 2
<proxy::rate_limiter::limiter::Limiter>::with_release_notifier 2
<proxy::rate_limiter::limiter::LimiterState>::in_flight 2
proxy::rate_limiter::limiter::tests::default_rate_buckets 2
proxy::rate_limiter::limiter::tests::default_rate_buckets::{closure#0} 2
proxy::rate_limiter::limiter::tests::is_fair 2
proxy::rate_limiter::limiter::tests::it_works 2
proxy::rate_limiter::limiter::tests::rate_bucket_parse 2
proxy::rate_limiter::limiter::tests::rate_bucket_parse::{closure#0} 2
proxy::rate_limiter::limiter::tests::rate_bucket_rpi 2
proxy::rate_limiter::limiter::tests::rate_bucket_rpi::{closure#0} 2
proxy::rate_limiter::limiter::tests::rate_buckets_validate 2
proxy::rate_limiter::limiter::tests::test_rate_limits 2
<proxy::rate_limiter::limiter::EndpointRateLimiter>::new_with_rand_and_hasher 4
>>::new_with_rand_and_hasher 2
::new_with_rand_and_hasher 2
<proxy::rate_limiter::limiter::Limiter as reqwest_middleware::middleware::Middleware>::handle 4
<proxy::rate_limiter::limiter::Limiter as reqwest_middleware::middleware::Middleware>::handle::{closure#0} 4
<proxy::rate_limiter::limiter::Limiter>::acquire_timeout::{closure#0}::{closure#0} 4
<proxy::rate_limiter::limiter::Outcome>::from_reqwest_response 4
<proxy::rate_limiter::limiter::RateBucketInfo as core::cmp::PartialEq>::eq 4
::clone 0
::eq 4
<proxy::rate_limiter::limiter::Token>::forget 4
proxy::rate_limiter::limiter::tests::is_fair::{closure#0} 4
proxy::rate_limiter::limiter::tests::it_works::{closure#0} 4
proxy::rate_limiter::limiter::tests::test_rate_limits::{closure#0} 4
proxy::rate_limiter::limiter::tests::test_rate_limits::{closure#0}::{closure#0} 4
<proxy::rate_limiter::limiter::RateBucketInfo>::validate 6
proxy::rate_limiter::limiter::tests::disable 6
proxy::rate_limiter::limiter::tests::disable 2
proxy::rate_limiter::limiter::tests::disable::{closure#0} 4
proxy::rate_limiter::limiter::tests::rate_buckets_validate::{closure#0} 6
proxy::rate_limiter::limiter::tests::test_rate_limits_gc 6
proxy::rate_limiter::limiter::tests::test_rate_limits_gc 2
proxy::rate_limiter::limiter::tests::test_rate_limits_gc::{closure#0} 4
<proxy::rate_limiter::limiter::RateBucketInfo>::validate::{closure#1} 8
<proxy::rate_limiter::limiter::Limiter>::state 12
<proxy::rate_limiter::limiter::LimiterState>::limit 12
<proxy::rate_limiter::limiter::Limiter>::acquire_timeout 16
::acquire_timeout 8
::acquire_timeout::{closure#0} 8
<proxy::rate_limiter::limiter::Limiter>::new 16
<proxy::rate_limiter::limiter::RateBucketInfo>::validate::{closure#0} 16
<proxy::rate_limiter::limiter::Limiter>::try_acquire::{closure#0} 18
<proxy::rate_limiter::limiter::RateBucketInfo as core::fmt::Display>::fmt 20
<proxy::rate_limiter::limiter::Limiter>::try_acquire 26
<proxy::rate_limiter::limiter::Token as core::ops::drop::Drop>::drop 30
<proxy::rate_limiter::limiter::Token>::new 30
<proxy::rate_limiter::limiter::RateBucketInfo as core::str::traits::FromStr>::from_str 34
<proxy::rate_limiter::limiter::RateBucketInfo>::new 42
<proxy::rate_limiter::limiter::Limiter>::release 52
::release 26
::release::{closure#0} 26
<proxy::rate_limiter::limiter::EndpointRateLimiter>::do_gc 976
>::do_gc 0
::do_gc 0
>>::do_gc 976
<proxy::rate_limiter::limiter::EndpointRateLimiter>::check::{closure#0} 2000002
>::check::{closure#0} 0
::check::{closure#0} 2
>>::check::{closure#0} 2000000
<proxy::rate_limiter::limiter::EndpointRateLimiter>::check 2001408
>::check 0
::check 1408
>>::check 2000000
<proxy::rate_limiter::limiter::RateBucket as core::clone::Clone>::clone 4000002
<proxy::rate_limiter::limiter::RateBucket>::inc 6002800
<proxy::rate_limiter::limiter::EndpointRateLimiter>::check::{closure#1} 6002812
>::check::{closure#1} 0
::check::{closure#1} 2812
>>::check::{closure#1} 6000000
<proxy::rate_limiter::limiter::RateBucket>::should_allow_request 6002812

Generated by: LCOV version 2.1-beta