rainyl / opencv_dart

OpenCV bindings for Dart language and Flutter. Support Asynchronous Now!
https://pub.dev/packages/opencv_dart
Apache License 2.0
136 stars 18 forks source link

updated functions to pass all params #182

Closed abdelaziz-mahdy closed 3 months ago

abdelaziz-mahdy commented 3 months ago

only did the core.dart for now fix https://github.com/rainyl/opencv_dart/issues/180

rainyl commented 3 months ago
abdelaziz-mahdy commented 3 months ago

Do you think we should add more tests to test the functionality of the optional parameters?

rainyl commented 3 months ago

Do you think we should add more tests to test the functionality of the optional parameters?

Not really, optional parameters have default values, which will be passed to native C functions, it's fine to just keep them same as C++ default values and no more extra tests needed.

But if you think they are necessary, you can add more tests and I am willing to accept 😄

And, thanks for your contributions! 🎉

abdelaziz-mahdy commented 3 months ago

Do you think we should add more tests to test the functionality of the optional parameters?

Not really, optional parameters have default values, which will be passed to native C functions, it's fine to just keep them same as C++ default values and no more extra tests needed.

But if you think they are necessary, you can add more tests and I am willing to accept 😄

And, thanks for your contributions! 🎉

Thank you for being supportive I enjoy contributing to this project ❤️

Also my point for tests was that we make sure that future changes won't break the the optional parameters being passed down correctly, like the reason this issue came up in the first place is that the tests were not covering the changes done by optional parameters

rainyl commented 3 months ago

Also my point for tests was that we make sure that future changes won't break the the optional parameters being passed down correctly, like the reason this issue came up in the first place is that the tests were not covering the changes done by optional parameters

Oh I agree with you now, more covered conditions will make this package more robust, just add more tests when you are free, since I am kind of busy recently. 😄