chore(damn): detekt, build, tests, formatting
fixed detekt issues where possible. fixed disttar failing build because tools is added twice in the server module. added workflowId where required. fixed some tests not being recognized because of runBlocking without explicit return type. formatting + imports.
This commit is contained in:
@@ -8,4 +8,4 @@ enum class ApprovalMode {
|
||||
PROMPT,
|
||||
AUTO,
|
||||
YOLO
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,4 @@ class DefaultSessionReducer : SessionReducer {
|
||||
updatedAt = event.metadata.timestamp
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ class DefaultSessionRepository(
|
||||
sessionId,
|
||||
replayer.rebuild(sessionId),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,4 @@ class SessionCounterProjection(
|
||||
): SessionCounterState {
|
||||
return state.copy(count = state.count + 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@ package com.correx.core.sessions
|
||||
data class SessionCounterState(
|
||||
val sessionId: String,
|
||||
val count: Int
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,4 +16,4 @@ class SessionProjector(
|
||||
state: SessionState,
|
||||
event: StoredEvent
|
||||
): SessionState = reducer.reduce(state, event)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ interface SessionReducer {
|
||||
state: SessionState,
|
||||
event: StoredEvent
|
||||
): SessionState
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ enum class SessionStatus {
|
||||
COMPLETED,
|
||||
FAILED,
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@ package com.correx.core.sessions
|
||||
sealed interface TransitionResult {
|
||||
data class Applied(val newState: SessionStatus) : TransitionResult
|
||||
data object Rejected : TransitionResult
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ package com.correx.core.sessions.projections
|
||||
|
||||
import com.correx.testing.contracts.fixtures.projections.CountingProjectionContractTest
|
||||
|
||||
class SessionCounterProjectionTest : CountingProjectionContractTest()
|
||||
class SessionCounterProjectionTest : CountingProjectionContractTest()
|
||||
|
||||
Reference in New Issue
Block a user