use ai_code_buddy::{core, Args, OutputFormat};
#[test]
fn test_run_cli_mode_credits_and_formats() {
let args = Args {
repo_path: ".".to_string(),
source_branch: "main".to_string(),
target_branch: "HEAD".to_string(),
cli_mode: true,
verbose: false,
show_credits: true,
output_format: OutputFormat::Summary,
exclude_patterns: vec![],
include_patterns: vec![],
use_gpu: false,
force_cpu: true,
parallel: false,
disable_ai: false,
};
assert!(core::run_cli_mode(args).is_ok());
for fmt in [
OutputFormat::Summary,
OutputFormat::Detailed,
OutputFormat::Json,
OutputFormat::Markdown,
] {
let args = Args {
repo_path: "/non/existent".to_string(), source_branch: "main".to_string(),
target_branch: "HEAD".to_string(),
cli_mode: true,
verbose: false,
show_credits: false,
output_format: fmt,
exclude_patterns: vec![],
include_patterns: vec![],
use_gpu: false,
force_cpu: true,
parallel: false,
disable_ai: false,
};
let _ = core::run_cli_mode(args);
}
}