mercredi 16 janvier 2019

How can I test private functions / methods in Flutter?

I'm currently developing an app that uses the bloc architecture. My bloc is using streams exclusively to communicate with the UI. Therefore all it's methods except for the constructor are private ( they start by '_').

So the question is how can I test the bloc's private methods from the test class that lives in the text package so it cannot access private methods of other packages.

Thanks

Aucun commentaire:

Enregistrer un commentaire