MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / rejects_unsupported_version

Function rejects_unsupported_version

crates/openshell-server/src/config_file.rs:464–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462
463 #[test]
464 fn rejects_unsupported_version() {
465 let toml = r"
466[openshell]
467version = 2
468";
469 let tmp = write_tmp(toml);
470 let err = load(tmp.path()).expect_err("version > 1 must be rejected");
471 assert!(matches!(
472 err,
473 ConfigFileError::UnsupportedVersion { version: 2 }
474 ));
475 }
476
477 #[test]
478 fn driver_table_inherits_gateway_defaults() {

Callers

nothing calls this directly

Calls 3

write_tmpFunction · 0.85
loadFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected