proxygen
|
Go to the source code of this file.
Functions | |
TEST (TokenBucket, ReverseTime) | |
TEST_P (TokenBucketTest, sanity) | |
INSTANTIATE_TEST_CASE_P (TokenBucket, TokenBucketTest,::testing::ValuesIn(rateToConsumeSize)) | |
void | doTokenBucketTest (double maxQps, double consumeSize) |
TEST (TokenBucket, sanity) | |
TEST (TokenBucket, ReverseTime2) | |
TEST (TokenBucket, drainOnFail) | |
Variables | |
static std::vector< std::pair< double, double > > | rateToConsumeSize |
void doTokenBucketTest | ( | double | maxQps, |
double | consumeSize | ||
) |
Definition at line 77 of file TokenBucketTest.cpp.
References folly::BasicTokenBucket< Clock >::consume(), EXPECT_FALSE, EXPECT_GE, EXPECT_LE, and max.
Referenced by TEST().
INSTANTIATE_TEST_CASE_P | ( | TokenBucket | , |
TokenBucketTest | , | ||
::testing::ValuesIn(rateToConsumeSize) | |||
) |
TEST | ( | TokenBucket | , |
ReverseTime | |||
) |
Definition at line 23 of file TokenBucketTest.cpp.
References folly::BasicTokenBucket< Clock >::available(), folly::BasicTokenBucket< Clock >::consume(), count, EXPECT_EQ, and EXPECT_FALSE.
TEST | ( | TokenBucket | , |
sanity | |||
) |
Definition at line 100 of file TokenBucketTest.cpp.
References doTokenBucketTest().
TEST | ( | TokenBucket | , |
ReverseTime2 | |||
) |
Definition at line 108 of file TokenBucketTest.cpp.
References folly::BasicTokenBucket< Clock >::available(), folly::BasicTokenBucket< Clock >::consume(), count, EXPECT_EQ, and EXPECT_FALSE.
TEST | ( | TokenBucket | , |
drainOnFail | |||
) |
Definition at line 123 of file TokenBucketTest.cpp.
References folly::BasicDynamicTokenBucket< Clock >::available(), folly::BasicDynamicTokenBucket< Clock >::consume(), folly::BasicDynamicTokenBucket< Clock >::consumeOrDrain(), EXPECT_DOUBLE_EQ, EXPECT_FALSE, and EXPECT_TRUE.
TEST_P | ( | TokenBucketTest | , |
sanity | |||
) |
Definition at line 38 of file TokenBucketTest.cpp.
References folly::BasicTokenBucket< Clock >::consume(), EXPECT_FALSE, EXPECT_GE, EXPECT_LE, max, and params.
|
static |
Definition at line 65 of file TokenBucketTest.cpp.