Skip to content

Conversation

@Roppax
Copy link
Contributor

@Roppax Roppax commented Dec 2, 2024

Created test class for GetThreads Interactor along with some minor fixes deleting 2 methods from the Threads Interface and their respective implementations in the GetThreadsDAO

…e and to debulk the code. Had to get rid of them from the Interface and in the DAO which implements them.
…e and to debulk the code. Had to get rid of them from the Interface and in the DAO which implements them.
- Implemented multiple test cases to validate GetThreadsInteractor functionality, including success and error scenarios.
- Added mock DAOs (InMemoryThreadDataAccess and InMemoryThreadDataAccessWithError) to simulate server behaviors.
- Fully implemented all methods required by GetThreadsThreadDataAccessInterface in the mock DAOs.
- Enhanced test coverage for switching views (chat and add thread view).
- Ensured all interface methods are properly handled to prevent compile-time issues.
@crypto-a crypto-a merged commit 618202b into dev Dec 2, 2024
1 check failed
Copy link
Contributor

@bennypk1 bennypk1 left a comment

Choose a reason for hiding this comment

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

Test classes look good, it is not yet at 100% coverage, but we talked about that and I'm expecting a follow up pull request for this. Additionally, great job removing the UserDAI for your use case, as determined that it was not needed, and was cluttering the project. It's great that your use case now only makes one API call and there are less variables at play.

@bennypk1 bennypk1 deleted the minorChangeGetThreads branch December 2, 2024 20:38
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