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

Function command_parses_bind_address

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

Source from the content-addressed store, hash-verified

827
828 #[test]
829 fn command_parses_bind_address() {
830 let _lock = ENV_LOCK
831 .lock()
832 .unwrap_or_else(std::sync::PoisonError::into_inner);
833 let _guard = EnvVarGuard::remove("OPENSHELL_BIND_ADDRESS");
834 let cli = Cli::try_parse_from([
835 "openshell-gateway",
836 "--db-url",
837 "sqlite::memory:",
838 "--bind-address",
839 "127.0.0.1",
840 ])
841 .unwrap();
842 assert_eq!(cli.run.bind_address, IpAddr::V4(Ipv4Addr::LOCALHOST));
843 }
844
845 #[test]
846 fn command_reads_bind_address_from_env() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected