insertPhaseBefore

fun insertPhaseBefore(reference: PipelinePhase, phase: PipelinePhase)

Inserts phase before the reference phase. Example:

val pipeline = Pipeline<String, String>(c)
pipeline.insertPhaseBefore(c, a)
pipeline.insertPhaseBefore(c, b)
assertEquals(listOf(a, b, c), pipeline.items)