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

Function command_reads_bind_address_from_env

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

Source from the content-addressed store, hash-verified

844
845 #[test]
846 fn command_reads_bind_address_from_env() {
847 let _lock = ENV_LOCK
848 .lock()
849 .unwrap_or_else(std::sync::PoisonError::into_inner);
850 let _guard = EnvVarGuard::set("OPENSHELL_BIND_ADDRESS", "0.0.0.0");
851
852 let cli = Cli::try_parse_from(["openshell-gateway", "--db-url", "sqlite::memory:"])
853 .expect("env should provide bind address");
854
855 assert_eq!(cli.run.bind_address, IpAddr::V4(Ipv4Addr::UNSPECIFIED));
856 }
857
858 #[test]
859 fn command_enables_loopback_service_http_by_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected