Skip to content
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

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

ermshiperete
Copy link
Contributor

@ermshiperete ermshiperete changed the title refactor(linux): Add more tests for keymanutil.c refactor(linux): Add more tests for keymanutil.c 🏘️ Sep 19, 2023
@keymanapp-test-bot
Copy link

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 19, 2023

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A17S22 milestone Sep 19, 2023
@ermshiperete ermshiperete marked this pull request as draft September 19, 2023 18:58
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch from c9cac51 to f1bd6b8 Compare September 20, 2023 18:01
@ermshiperete ermshiperete changed the base branch from master to chore/linux/fixbug September 20, 2023 18:02
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch from f1bd6b8 to 9aab576 Compare September 21, 2023 08:30
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch from 9aab576 to 35e0523 Compare September 21, 2023 17:29
Base automatically changed from chore/linux/fixbug to master September 21, 2023 17:30
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch 3 times, most recently from 9715d5b to f51b8b7 Compare September 27, 2023 09:52
@ermshiperete ermshiperete changed the base branch from master to chore/linux/fixtests September 27, 2023 09:53
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch from f51b8b7 to ceb937f Compare September 27, 2023 18:09
Base automatically changed from chore/linux/fixtests to master September 28, 2023 06:35
@ermshiperete ermshiperete marked this pull request as ready for review September 28, 2023 06:59
@ermshiperete ermshiperete marked this pull request as draft September 28, 2023 07:00
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch 2 times, most recently from 3d0f07b to 20d2ed5 Compare September 28, 2023 11:31
@ermshiperete ermshiperete marked this pull request as ready for review September 28, 2023 14:17
@ermshiperete ermshiperete force-pushed the refactor/linux/keymanutil-tests branch from 20d2ed5 to 3812a1d Compare September 28, 2023 15:25
@@ -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);
Copy link
Contributor

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?

Suggested change
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() {
Copy link
Contributor

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)

Copy link
Contributor Author

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.

Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ermshiperete ermshiperete merged commit b70c00f into master Sep 29, 2023
2 checks passed
@ermshiperete ermshiperete deleted the refactor/linux/keymanutil-tests branch September 29, 2023 10:11
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 17.0.183-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants