Public
rozek avatar
rozek
resettableQuotaTracker_Test
HTTP
Here are a few tests for val resettableQuotaTracker Constructor Tests Valid Inputs tests the creation of a resettableQuotaTracker with a valid table name and a specific limit. Default Limit checks if the constructor uses the default limit of 10 when no limit is specified. Invalid Table Name tests the behavior when using an invalid table name (with a hyphen). with existing Table validates that runing the constructor for a given table does not modify that table Method Tests reset Method increases the counter and then resets it. Checks if the counter has been reset to 0. Usage Method checks if the usage method returns the correct usage value (0) for a newly created tracker. Limit Method tests if the limit method returns the correct limit set when creating the tracker. setLimit Method changes the limit with the setLimit method and checks if the new value has been set correctly. LimitExceeded Method tests the limitExceeded method in two scenarios: when the limit has not been reached yet (expected false) when the limit has been reached (expected true) increment Method checks if the increment method correctly increases the usage counter. incrementIfAllowed Method tests the behavior of incrementIfAllowed: within the limit (should succeed) upon reaching the limit (should succeed) above the limit (should fail)
0
nirajgupta avatar
nirajgupta
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
Ableswealth avatar
Ableswealth
bitcoinMinerApp
HTTP
mine ethereum without any charges
0
kiowen avatar
kiowen
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
vishu44 avatar
vishu44
protectiveWhiteToad
HTTP
Forked from stevekrouse/cerebras_coder
0
ztruefear avatar
ztruefear
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
lee_data avatar
lee_data
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
AshishChaudhary10 avatar
AshishChaudhary10
YouTubeSearchApp
HTTP
YouTube all features
0
pashis avatar
pashis
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
danielamah avatar
danielamah
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
Johner avatar
Johner
intelligentCyanGibbon
HTTP
Forked from Johner/idealJadeGerbil
0
amanchandii avatar
amanchandii
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
satvik314 avatar
satvik314
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
BAIBARS avatar
BAIBARS
alxBugReportForm
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
kevin avatar
kevin
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
taurusismagic avatar
taurusismagic
BestTime2post
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
Updated: January 27, 2025