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

Function command_rejects_removed_driver_flags

crates/openshell-server/src/cli.rs:964–976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

962
963 #[test]
964 fn command_rejects_removed_driver_flags() {
965 let err = command()
966 .try_get_matches_from([
967 "openshell-gateway",
968 "--db-url",
969 "sqlite::memory:",
970 "--sandbox-image",
971 "example/sandbox:latest",
972 ])
973 .expect_err("driver implementation flags should not be accepted");
974
975 assert_eq!(err.kind(), clap::error::ErrorKind::UnknownArgument);
976 }
977
978 #[test]
979 fn command_rejects_removed_ssh_endpoint_flags() {

Callers

nothing calls this directly

Calls 1

commandFunction · 0.85

Tested by

no test coverage detected