MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / check_invalid

Function check_invalid

crates/cli/src/config.rs:956–962  ·  view source on GitHub ↗
(contents: &str, expect: CliError)

Source from the content-addressed store, hash-verified

954"#;
955
956 fn check_invalid(contents: &str, expect: CliError) -> ResultTest<()> {
957 let doc = contents.parse::<toml_edit::DocumentMut>()?;
958 let err = RawConfig::try_from(&doc);
959 assert_eq!(err.unwrap_err().to_string(), expect.to_string());
960
961 Ok(())
962 }
963
964 fn check_config<F>(input: &str, output: &str, f: F) -> ResultTest<()>
965 where

Callers 1

test_config_invalidFunction · 0.85

Calls 1

OkFunction · 0.50

Tested by 1

test_config_invalidFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…