gitflow-core 2.1.0

gf 核心库:细粒度 provider trait 集合、URL 平台探测、跨平台适配器契约与 toon 输出。Core library: provider traits, URL-based platform detection, cross-platform adapter contracts & toon output.
Documentation
//! Integration tests for the `gitflow-core` crate.
//!
//! These tests exercise public API surfaces (e.g. `Config` construction
//! and validation) through the published crate boundary to mirror how
//! downstream consumers will use the library.

#![allow(
    clippy::expect_used,
    clippy::unwrap_used,
    reason = "Integration tests unwrap known-good fixtures"
)]

use gitflow_core::{Config, CoreError, Result};

#[test]
fn integration_config_roundtrip() -> Result<()> {
    let config = Config::new("integration-test")?.with_description("test config");
    assert_eq!(config.name(), "integration-test");
    assert_eq!(config.description(), Some("test config"));
    Ok(())
}

#[test]
fn integration_empty_config_name_should_fail() {
    let err = Config::new("");
    assert!(matches!(err, Err(CoreError::App(_))));
}