package com.correx.testing.fixtures

import com.correx.core.events.types.StageId
import com.correx.core.events.types.TransitionId
import com.correx.core.transitions.analysis.DetectedCycle
import com.correx.core.transitions.graph.TransitionEdge

object CycleFixtures {
    fun simpleCycle(): DetectedCycle {
        val a = StageId("A")
        val b = StageId("B")

        return DetectedCycle(
            nodes = listOf(a, b),
            edges = listOf(
                TransitionEdge(
                    id = TransitionId("t1"),
                    from = a,
                    to = b,
                    condition = { true },
                )
            )
        )
    }
}
