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 HmacSecretKey Class #144

Merged
merged 4 commits into from
Sep 6, 2024
Merged

Conversation

HamdaanAliQuatil
Copy link
Collaborator

No description provided.

@HamdaanAliQuatil
Copy link
Collaborator Author

part of #105

lib/src/impl_stub.dart Outdated Show resolved Hide resolved

@override
Future<HmacSecretKeyImpl> importRawKey(List<int> keyData, Hash hash, {int? length}) {
throw UnimplementedError();
Copy link
Member

Choose a reason for hiding this comment

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

Can we throw throw UnimplementedError('Not implemented');

Or even just make a final _notImplemented = UnimplementedError('Not implemented'); inside impl_stub.dart, then we can use that in all the stubs.

Perhaps this is a follow up PR :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to throw UnimplementedError('Not implemented'); as is in other files. Missed it here.

Or even just make a final _notImplemented = UnimplementedError('Not implemented'); inside impl_stub.dart, then we can use that in all the stubs.

Will update to this structure in a follow up PR

@jonasfj
Copy link
Member

jonasfj commented Sep 4, 2024

@HamdaanAliQuatil please rebase this, so we can run tests again, hopefully they'll pass :D

@HamdaanAliQuatil
Copy link
Collaborator Author

@HamdaanAliQuatil please rebase this, so we can run tests again, hopefully they'll pass :D

@jonasfj Done. The tests still didn't pass

@jonasfj jonasfj merged commit 43fcf0d into google:master Sep 6, 2024
5 of 6 checks passed
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.

2 participants