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

Replace IFormula implementation function with a value. #374

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

Laimiux
Copy link
Collaborator

@Laimiux Laimiux commented Aug 14, 2024

What

  • Replacing implementation function with a value
  • Adding testFormula extension to simplify testing API

@@ -73,7 +73,9 @@ class TestFormulaTest {
class Button(val onNameChanged: (String) -> Unit)
}

class FakeChildFormula : TestFormula<ChildFormula.Input, ChildFormula.Button>(), ChildFormula {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using testFormula in combination with implementation allows us to avoid re-typing various types that are already declared within ChildFormula

@Laimiux Laimiux force-pushed the laimonas/formula-implementation-as-value branch from 28c5875 to 499add9 Compare August 14, 2024 11:58
@carrotkite
Copy link

1 Warning
⚠️ No coverage data found for com/instacart/formula/IFormula

JaCoCo Code Coverage 83.76% ✅

Class Covered Meta Status
com/instacart/formula/internal/ChildrenManager 75% 0%
com/instacart/formula/FormulaRuntime 94% 0%
com/instacart/formula/IFormula No coverage data found : -% No coverage data found : -% 🃏
com/instacart/formula/ActionFormula 100% 0%
com/instacart/formula/Formula 100% 0%
com/instacart/formula/StatelessFormula 100% 0%

Generated by 🚫 Danger

@Laimiux Laimiux merged commit bccd4ba into master Aug 14, 2024
4 checks passed
@Laimiux Laimiux deleted the laimonas/formula-implementation-as-value branch August 14, 2024 13:34
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.

3 participants