flowcode-core 0.4.2-alpha

Core execution engine for FlowCode data scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::collections::HashSet;
use flowcode_core::{parser, spec::SPECS};

#[test]
fn specs_and_parser_must_match() {
    let spec_names: HashSet<_> = SPECS.iter().map(|c| c.name).collect();
    let parser_names: HashSet<_> = parser::all_command_names().into_iter().collect();

    assert_eq!(
        spec_names, parser_names,
        "SPECS and parser command list diverged—run FCSPECS=1 cargo build ... \
         to regenerate docs or update spec.rs"
    );
}