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

[Tech] Publisher: Add global mock and XCTTest #413

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

robergro
Copy link
Contributor

@robergro robergro commented Sep 5, 2023

This PR adds an PublisherMock class.
This class try to reproduce a mock from sourcery (with counter and return values)
It can be used to test all @published (used by ViewModel currently)

This PR also adds 5 XCTest method to test all data on PublisherMock (count, value, values, ...)

@robergro robergro merged commit 1b08404 into main Sep 5, 2023
4 checks passed
@robergro robergro deleted the tech/publisher branch September 5, 2023 13:41
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