#![allow(clippy::unwrap_used, clippy::expect_used)]
use agentgear::{AGENT_IDS, backend_for};
#[test]
fn every_id_resolves_through_backend_for() {
assert!(!AGENT_IDS.is_empty(), "`claude` is always compiled in, so the roster is never empty");
for &id in AGENT_IDS {
assert!(backend_for(id).is_some(), "AGENT_IDS lists `{id}` but backend_for cannot resolve it");
}
}
#[test]
fn claude_is_always_present() {
assert!(AGENT_IDS.contains(&"claude"), "the default `claude` backend is always compiled in");
}
#[cfg(not(feature = "codex"))]
#[test]
fn a_feature_off_id_is_absent() {
assert!(!AGENT_IDS.contains(&"codex"), "codex feature is off, so AGENT_IDS must not list it");
assert!(backend_for("codex").is_none(), "codex feature is off, so backend_for must not resolve it");
}