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

[Feature] Add navigation witness #99

Merged
merged 14 commits into from
Dec 4, 2020
Merged

Conversation

danieleformichelli
Copy link
Contributor

Why
Expose the navigation as a protocol witness to facilitate testing of the app logic

Changes
Add NavigationWitness struct

Tasks

  • Add relevant tests, if needed
  • Add documentation, if needed
  • Update README, if needed
  • Ensure that the demo project works properly

@danieleformichelli danieleformichelli marked this pull request as draft November 19, 2020 17:40
@danieleformichelli danieleformichelli force-pushed the feature/navigation-witness branch 2 times, most recently from 16b06e5 to 8f86552 Compare November 26, 2020 13:56
@LorDisturbia LorDisturbia self-assigned this Nov 26, 2020
Podfile.lock Outdated
- Tempura (from `.`)
- Tempura (~> 6.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

[i] Maybe let's have TempuraTesting point to the local Tempura in the Podfile, and check that everything is set up correctly in the podspec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tempura/Navigation/NavigationWitness.swift Outdated Show resolved Hide resolved
Tempura/Navigation/NavigationWitness.swift Show resolved Hide resolved
// MARK: - Wrapped

/// Wraps any object into a reference-type object
public class Wrapped<T> {
Copy link
Contributor

Choose a reason for hiding this comment

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

[i] If you look in Ramen there is a Box type that does this but it also has dynamic dispatch to the underlying value (which is kinda cool to have). I'd put that here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced Wrapped with ad hoc NavigationRequests type for improved ergonomic

@LorDisturbia LorDisturbia marked this pull request as ready for review December 4, 2020 16:12
@smaramba smaramba merged commit f611a5b into master Dec 4, 2020
@smaramba smaramba deleted the feature/navigation-witness branch December 4, 2020 16:14
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.

None yet

5 participants