spate-test 0.4.0

Testing utilities for the Spate framework: in-memory sources and sinks with scripting handles for exercising pipelines without external infrastructure.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The scripted coordinator is gone from `spate-test`.

use std::path::Path;

#[test]
fn no_scripted_coordinator() {
    let src = Path::new(env!("CARGO_MANIFEST_DIR")).join("src");
    assert!(
        !src.join("coordination.rs").try_exists().unwrap(),
        "src/coordination.rs exists"
    );
    let lib = std::fs::read_to_string(src.join("lib.rs")).expect("read lib.rs");
    assert!(
        !lib.contains("scripted_coordinator"),
        "lib.rs exports scripted_coordinator"
    );
}