pmat 3.15.0

PMAT - Zero-config AI context generation and code quality toolkit (CLI, MCP, HTTP)
// Git History RAG Integration Tests
// Falsification tests from docs/specifications/git-history-rag-integration.md

#[cfg(test)]
mod integration_tests {
    use crate::services::git_history::{CommitEmbedder, CommitInfo, GitHistoryIndex};

    // Integration test placeholder - will be expanded as features are implemented
    #[test]
    fn test_module_exports_available() {
        // Verify module exports are available
        let _embedder = CommitEmbedder::new();
        let index = GitHistoryIndex::in_memory();
        assert!(index.is_ok(), "GitHistoryIndex should be creatable");
    }

    #[test]
    fn test_commit_info_struct() {
        let info = CommitInfo {
            hash: "a".repeat(40),
            message_subject: "Test commit message".to_string(),
            message_body: Some("With a body".to_string()),
            author_name: "Test".to_string(),
            author_email: "test@example.com".to_string(),
            timestamp: 1700000000,
            is_merge: false,
            is_fix: false,
            is_feat: false,
            issue_refs: vec![],
            files: vec![],
        };

        assert!(info.is_indexable());
        assert!(info.full_message().contains("body"));
    }
}