llm-config-devtools 0.5.0

Development and security tools for LLM Config Manager
Documentation
//! YAML report generator.

use crate::error::Result;
use crate::security::SecurityReport;

/// Generate a YAML report.
pub fn generate(report: &SecurityReport) -> Result<String> {
    let yaml = serde_yaml::to_string(report)?;
    Ok(yaml)
}

#[cfg(test)]
mod tests {
    use super::*;
    use std::path::PathBuf;

    #[test]
    fn test_yaml_generation() {
        let report = SecurityReport::new(PathBuf::from("."), vec![]);
        let yaml = generate(&report).unwrap();
        assert!(yaml.contains("timestamp"));
        assert!(yaml.contains("findings"));
    }
}