qctl 0.4.6

Control in-repo YAML work queues
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The committed schema is generated, so it has to still be what the types say.

/// A change to the types that forgets to regenerate it is a defect in itself:
/// editors would read one contract while the binary enforced another.
#[test]
fn the_committed_schema_is_what_the_types_say() {
    let generated = qctl::schema::generated().expect("generate");
    let committed = std::fs::read_to_string(
        std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(qctl::schema::COMMITTED),
    )
    .expect("read committed schema");
    assert_eq!(
        committed, generated,
        "run `qctl schema` and commit the result"
    );
}