-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add key publisher test #477
Conversation
Signed-off-by: Jenn Nguyen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gui3 #477 +/- ##
============================================
+ Coverage 73.51% 73.82% +0.30%
============================================
Files 30 30
Lines 3270 3270
============================================
+ Hits 2404 2414 +10
+ Misses 866 856 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
just a minor comment, LGTM
@ahcorde what's the minor comment? |
protected: Application app{g_argc, g_argv}; | ||
|
||
// Instance of the main window. | ||
protected: MainWindow *win; | ||
|
||
// List of plugins. | ||
protected: QList<KeyPublisher *> plugins; | ||
protected: KeyPublisher *plugin; | ||
|
||
// Checks if a new key has been received. | ||
protected: bool received = false; | ||
protected: transport::Node node; | ||
|
||
// Current key | ||
protected: int currentKey = 0; |
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.
private
instead of protected
?
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.
If private
then the members won't be accessible, specifically we can't call:
gz-gui/src/plugins/key_publisher/KeyPublisher_TEST.cc
Lines 130 to 132 in c8d3d62
this->VerifyKeyEvent(Qt::Key_W); | |
this->VerifyKeyEvent(Qt::Key_A); | |
this->VerifyKeyEvent(Qt::Key_D); |
Part of gazebosim/gz-sim#1575
Summary
Added
KeyPublisher_TEST
to increase code coverageChecklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.