epic-13: add cli and tui entry point, finish epic.
This commit is contained in:
@@ -14,7 +14,7 @@ class ValidationPipelineShortCircuitTest {
|
||||
|
||||
private val context = ValidationContext(WorkflowFixtures.simpleGraph())
|
||||
|
||||
private fun errorValidator(name: String) = Validator { _ ->
|
||||
private fun errorValidator(name: String = "first") = Validator { _ ->
|
||||
ValidationSection(
|
||||
name = name,
|
||||
issues = listOf(ValidationIssue("ERR", "failure", ValidationSeverity.ERROR))
|
||||
@@ -29,7 +29,7 @@ class ValidationPipelineShortCircuitTest {
|
||||
ValidationSection(name = "second")
|
||||
}
|
||||
|
||||
val pipeline = ValidationPipeline(listOf(errorValidator("first"), trackingValidator))
|
||||
val pipeline = ValidationPipeline(listOf(errorValidator(), trackingValidator))
|
||||
val outcome = pipeline.validate(context) as ValidationOutcome.Rejected
|
||||
|
||||
assertFalse(secondCalled, "second validator must not run after a rejection")
|
||||
|
||||
Reference in New Issue
Block a user