Skip to content

KeyringController: improve unit test coverage - #693

Merged
jpuri merged 16 commits into
mainfrom
keyring_cont_test_coverage
Apr 26, 2022
Merged

jpuri merged 16 commits into
mainfrom
keyring_cont_test_coverage

Conversation

@jpuri

@jpuri jpuri commented Feb 17, 2022

Copy link
Copy Markdown
Contributor

Adding more unit test cases for keyring controller.

Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.ts Resolved
@adonesky1
adonesky1 marked this pull request as ready for review April 21, 2022 18:48
@adonesky1
adonesky1 requested a review from a team as a code owner April 21, 2022 18:48

@mcmire mcmire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hey @jpuri, sorry for the delay in reviewing this. I need to take a closer look but for now I've just added comments for style-related things. @Gudahtt You might want to take a look at this too.

Just a note about the TODOs. I am not a big fan of adding TODOs to code because I feel like it creates noise when reading through the code. Would you mind filing issues around problems you see? You can copy/paste the comments you've left if you like. That should allow us to have discussions about these things in a dedicated place and give visibility for @Gudahtt as he works through the keyring stuff.

Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
Comment thread src/keyring/KeyringController.test.ts Resolved
@jpuri

jpuri commented Apr 25, 2022

Copy link
Copy Markdown
Contributor Author

Test coverage in KeyringController after PR:

Screenshot 2022-04-25 at 3 43 47 PM

Comment thread src/keyring/KeyringController.test.ts Resolved
adonesky1
adonesky1 previously approved these changes Apr 25, 2022

@adonesky1 adonesky1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Comment thread src/keyring/KeyringController.test.ts Resolved
Gudahtt
Gudahtt previously approved these changes Apr 25, 2022

@Gudahtt Gudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Still lots of room for improvement but this seems like a clear step forward.

mcmire
mcmire previously approved these changes Apr 25, 2022

@mcmire mcmire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Noticed one small thing, but it is minor. Looks good to me regardless.

Comment thread src/keyring/KeyringController.test.ts Resolved
@jpuri
jpuri dismissed stale reviews from mcmire, Gudahtt, and adonesky1 via b5f3e6f April 26, 2022 08:51
@jpuri
jpuri requested review from Gudahtt, adonesky1 and mcmire April 26, 2022 08:51
@jpuri

jpuri commented Apr 26, 2022

Copy link
Copy Markdown
Contributor Author

I have done a small update, can you plz re-approve @adonesky1 , @mcmire , @Gudahtt

@jpuri
jpuri merged commit cb585d1 into main Apr 26, 2022
@jpuri
jpuri deleted the keyring_cont_test_coverage branch April 26, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants