vtcode-config 0.186.0

Config loader components shared across VT Code and downstream adopters
Documentation
//! Debug output must stay byte-identical to the built-in derive after switching
//! `ModelId` to `DebugNoInline` (unit variants, raw identifier names, and the
//! data-carrying `Custom` variant all travel different generated paths).

use super::ModelId;

#[test]
fn debug_output_matches_builtin_derive_for_unit_variants() {
    assert_eq!(format!("{:?}", ModelId::ClaudeSonnet5), "ClaudeSonnet5");
    assert_eq!(format!("{:?}", ModelId::GPT62Astra), "GPT62Astra");
    assert_eq!(format!("{:?}", ModelId::XaiGrok47), "XaiGrok47");
    assert_eq!(format!("{:?}", ModelId::default()), "ClaudeSonnet5");
}

#[test]
fn debug_output_matches_builtin_derive_for_custom_variant() {
    let model = ModelId::Custom("vendor".to_string(), "model-v1".to_string());
    assert_eq!(format!("{model:?}"), "Custom(\"vendor\", \"model-v1\")");
    assert_eq!(format!("{model:#?}"), "Custom(\n    \"vendor\",\n    \"model-v1\",\n)");
}