-
Notifications
You must be signed in to change notification settings - Fork 7
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
hugo/feature/Add ReinforcerKit #980
Conversation
HPezz
commented
Aug 25, 2022
- ✨ (libs): Add ReinforcerKit
- ✅ (tests): Add ReinforcerKit_test.cpp
- 🔥 (behavior): Remove Reinforcers from BehaviorKit
- 🎨 (commandkit): Update ReinforcerCommand
- 🎨 (os): Update OS with ReinforcerKit
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
Codecov Report
@@ Coverage Diff @@
## develop #980 +/- ##
===========================================
- Coverage 96.01% 95.93% -0.09%
===========================================
Files 129 129
Lines 2987 3001 +14
===========================================
+ Hits 2868 2879 +11
- Misses 119 122 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
76eedc3
to
822669e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 modulo deux trois changements :)
3bb82ce
to
bb06e78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas grand chose à dire, c'est bon pour moi :)
void ReinforcerKit::run(const Reinforcer &reinforcer) | ||
{ | ||
switch (reinforcer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion un peu barbare, avoir un run qui prend en paramètre un Reinforcer en pointeur et s'il est nul de pouvoir lancer le renforçateur par défaut.
void ReinforcerKit::run(const Reinforcer &reinforcer) | |
{ | |
switch (reinforcer) { | |
void ReinforcerKit::run(const Reinforcer *reinforcer = nullptr) | |
{ | |
auto selected_reinforcer = *reinforcer == nullptr ? _default_reinforcer : *reinforcer | |
switch (selected_reinforcer) { |
Ca permettrait de l'extérieur de simplifier encore plus les choses en ayant uniquement que setDefaultReinforcer
et run
en fonctions d'appels de ReinforcerKit plutôt que de se dire "si je ne sais pas quel renforçateur appeler, il faut appeler une autre fonction"
bb06e78
to
3c3f3fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! 👍
7f05e35
to
bbe826d
Compare
66ddd4a
to
6ac5c30
Compare
6ac5c30
to
0afcd0b
Compare
Kudos, SonarCloud Quality Gate passed! |