-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
refactor(linux): Add more tests for keymanutil.c
🏘️
#9595
Conversation
keymanutil.c
keymanutil.c
🏘️
User Test ResultsTest specification and instructions User tests are not required |
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
c9cac51
to
f1bd6b8
Compare
ad01caf
to
5d074b0
Compare
f1bd6b8
to
9aab576
Compare
5d074b0
to
3d8cf18
Compare
9aab576
to
35e0523
Compare
9715d5b
to
f51b8b7
Compare
f51b8b7
to
ceb937f
Compare
Also add guard to kmpdetails.h.
3d0f07b
to
20d2ed5
Compare
20d2ed5
to
3812a1d
Compare
linux/ibus-keyman/src/keymanutil.c
Outdated
@@ -416,47 +445,37 @@ keyman_put_options_todconf(gchar *package_id, | |||
|
|||
// Obtain keyboard options from DConf | |||
gchar **options = keyman_get_options_fromdconf(package_id, keyboard_id); |
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.
Do you want to match l. 397?
gchar **options = keyman_get_options_fromdconf(package_id, keyboard_id); | |
g_auto(GStrv) options = keyman_get_options_fromdconf(package_id, keyboard_id); |
} | ||
|
||
add_keyboard_data* | ||
_get_keyboard_data() { |
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.
Ah, initially I wondered why _get_kmp_foo() and _get_keyboard_foo() weren't in kmpdetails.c, but I see these generate test stubs. Since the keyboard ID is tst
, I suggest _get_tst_
prefixes.
To me, that would make it a little clearer some of the info isn't coming from kmp.json. (ll 36-39)
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.
I couldn't think of a name that would make it clearer, but using tst
is a good suggestion.
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
Changes in this pull request will be available for download in Keyman version 17.0.183-alpha |
@keymanapp-test-bot skip