use super::*;
#[test]
fn client_region_allowlist_parses_when_present() {
let file: FileConfig = toml::from_str(
r#"
[client]
region_allowlist = ["US", "DE"]
"#,
)
.expect("valid [client] table parses");
assert_eq!(
file.client
.expect("[client] present")
.region_allowlist
.expect("region_allowlist present"),
vec!["US".to_string(), "DE".to_string()]
);
}
#[test]
fn client_section_absent_by_default() {
let file: FileConfig = toml::from_str("").expect("empty config parses");
assert!(file.client.is_none());
}