-
Notifications
You must be signed in to change notification settings - Fork 25
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
Mock list all #33
Mock list all #33
Conversation
Hey @atn832 , would love your feedback on this! |
}); | ||
} | ||
|
||
void expectRef(Reference actualReference, {required String name}) { |
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.
Nice!
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.
Thank you!
isA<MockReference>().having((ref) => ref.name, 'Right name', name)); | ||
} | ||
|
||
Uint8List randomData(int n) { |
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.
Nice!
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.
Thank you!
Looks good, would you mind applying the 2 small changes? |
Hey @atn832 , fixed everything you mentioned in the review. Please let me know if there is something elses needed to be done. Nevertheless, I would really appriciate it if you could release a new version of firebase_storage_mock after you merge this PR🙏 . |
final basePath = 'this/is/basic'; | ||
final otherPath = 'another/path'; | ||
final storage = MockFirebaseStorage(); | ||
await storage.ref(basePath + '/listed_data').putData(randomData(255)); |
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.
Much better, thank you!
Sure thing. I just published your feature to https://pub.dev/packages/firebase_storage_mocks/changelog#061. Thanks for the high quality PR. Btw, in the future, if your work depends urgently on your fixes, you can temporarily change your yaml file to depend on your fork. See https://dart.dev/tools/pub/dependencies#git-packages. |
An implementation of the function
listAll
forMockReference
Related to #32