MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/core/platform/cloud/gcs_throttle_test.cc:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49TEST_F(GcsThrottleTest, ReplenishTokens) {
50 EXPECT_EQ(0, throttle_.available_tokens());
51 time_.AdvanceSeconds(1);
52 EXPECT_EQ(100000, throttle_.available_tokens());
53 time_.AdvanceSeconds(2);
54 EXPECT_EQ(300000, throttle_.available_tokens());
55}
56
57TEST_F(GcsThrottleTest, RejectRequest) {
58 EXPECT_EQ(0, throttle_.available_tokens());

Callers

nothing calls this directly

Calls 3

AdvanceSecondsMethod · 0.80
AdmitRequestMethod · 0.80
RecordResponseMethod · 0.45

Tested by

no test coverage detected