Skip to content

Commit

Permalink
Fix mockito.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laimiux committed Jan 3, 2024
1 parent 8313672 commit 2f04dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class MockitoFormulaTest {
assertThat(formula.type()).isEqualTo(MyFormula::class)
}

class MyFormula : Formula<Unit, Unit, Unit>() {
override fun initialState(input: Unit) = Unit

class MyFormula : StatelessFormula<Unit, Unit>() {
override fun Snapshot<Unit, Unit>.evaluate(): Evaluation<Unit> {
return Evaluation(Unit)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package com.instacart.formula
abstract class StatelessFormula<Input, Output> : IFormula<Input, Output> {

// Implements the common API used by the runtime.
private val implementation = object : Formula<Input, Unit, Output>() {
private val implementation: Formula<Input, Unit, Output> = object : Formula<Input, Unit, Output>() {
override fun initialState(input: Input) = Unit

override fun Snapshot<Input, Unit>.evaluate(): Evaluation<Output> {
Expand Down

0 comments on commit 2f04dff

Please sign in to comment.