()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected