-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
token bucket unit tests and redesign (DI of timer function) #692
Conversation
/hold |
07fce90
to
947a8bc
Compare
I'd suggest splitting any PR to add unit tests from a PR that adds formatting changes. |
d32f560
to
1e06599
Compare
a9af269
to
d1ddba0
Compare
d1ddba0
to
c38d615
Compare
Co-Authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-By: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-By: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-By: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-authored-by: Leonardo Di Donato <[email protected]> Signed-off-by: Lorenzo Fontana <[email protected]>
Co-Authored-By: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
Co-Authored-By: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
c38d615
to
6327874
Compare
LGTM label has been added. Git tree hash: 93b40ccb1809c0c81d6e710fa05155281be269de
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fntlnz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
What this PR does / why we need it:
The goal of this PR is to introduce an initial set of unit tests for the existing code surface.
Which issue(s) this PR fixes:
Refs #691
Special notes for your reviewer:
This PR introduces the unit test of
token_bucket
class via Catch2 framework for unit testing.It also introduces the fakeit framework for mocking, stubbing, and spying capabilities.
Furthermore it redesigns the
token_bucket
class decoupling the timer function via classical DI (dependency injection) approach.Does this PR introduce a user-facing change?: