pipedash-plugin-api 0.14.0

Plugin API for Pipedash - CI/CD pipeline dashboard
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;

#[test]
fn resumes_only_when_the_old_output_is_an_unchanged_prefix() {
    let cursor = RenderedCursor::of(b". a\n. b\n");

    assert_eq!(cursor.resume(b". a\n. b\n! c\n"), Some(8));
    assert_eq!(cursor.resume(b". a\n. b\n"), Some(8));
    assert_eq!(cursor.resume(b". a\n. x\n! c\n"), None);
    assert_eq!(cursor.resume(b". a\n"), None);
}