use super::*;

fn play(decision: UpstreamPlanDecision) -> PlannedUpstreamPacket {
    match decision {
        UpstreamPlanDecision::Play(plan) => plan,
        other => panic!("expected playable packet, got {other:?}"),
    }
}

fn runtime_without_offsets() -> UpstreamMediaRuntime {
    let runtime = UpstreamMediaRuntime::new();
    runtime.set_playout_offsets(0, 0);
    runtime
}

mod async_wait;
mod config;
mod lifecycle;
mod planning;
