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