Tests use a fake terminal and an injected clock and /proc readers. - Rendering: layout, gradient endpoints, bar width limits, truncation, plain output without color, and the unknown-total and overshoot states. - Behavior: speed smoothing, accumulation across processes, the show delay, erase sequences, messages printed above the display, and both kinds of prompt.