#![recursion_limit = "256"] #[allow(dead_code)] #[path = "acp_common_tests/mod.rs"] mod common_tests; use common_tests::fixtures::provider::AcpProviderConnection; use common_tests::fixtures::run_test; #[cfg(feature = "code-mode")] use common_tests::run_prompt_codemode; use common_tests::{ run_close_session, run_config_mcp, run_delete_session, run_fs_read_text_file_true, run_fs_write_text_file_false, run_fs_write_text_file_true, run_load_mode, run_load_model, run_load_session_error, run_load_session_mcp, run_model_list, run_permission_persistence, run_prompt_basic, run_prompt_error, run_prompt_image, run_prompt_image_attachment, run_prompt_mcp, run_prompt_model_mismatch, run_prompt_skill, run_shell_terminal_false, run_shell_terminal_true, }; #[test] fn test_config_mcp() { run_test(async { run_config_mcp::().await }); } #[test] fn test_close_session() { run_test(async { run_close_session::().await }); } #[test] #[ignore = "delete is a server-side custom method not routed through the provider"] fn test_delete_session() { run_test(async { run_delete_session::().await }); } #[test] #[ignore = "provider is a plug-in to the goose CLI, UI and terminal clients, none of which handle buffered changes to files"] fn test_fs_read_text_file_true() { run_test(async { run_fs_read_text_file_true::().await }); } #[test] fn test_fs_write_text_file_false() { run_test(async { run_fs_write_text_file_false::().await }); } #[test] #[ignore = "provider is a plug-in to the goose CLI, UI and terminal clients, none of which handle buffered changes to files"] fn test_fs_write_text_file_true() { run_test(async { run_fs_write_text_file_true::().await }); } #[test] #[ignore = "TODO: implement load_session in ACP provider"] fn test_load_mode() { run_test(async { run_load_mode::().await }); } #[test] #[ignore = "TODO: implement load_session in ACP provider"] fn test_load_model() { run_test(async { run_load_model::().await }); } #[test] #[ignore = "TODO: implement load_session in ACP provider"] fn test_load_session_error_session_not_found() { run_test(async { run_load_session_error::().await }); } #[test] #[ignore = "TODO: implement load_session in ACP provider"] fn test_load_session_mcp() { run_test(async { run_load_session_mcp::().await }); } #[test] fn test_model_list() { run_test(async { run_model_list::().await }); } #[test] fn test_permission_persistence() { run_test(async { run_permission_persistence::().await }); } #[test] fn test_prompt_basic() { run_test(async { run_prompt_basic::().await }); } #[test] #[cfg(feature = "code-mode")] fn test_prompt_codemode() { run_test(async { run_prompt_codemode::().await }); } #[test] #[ignore = "ensure_session lazy-creates sessions so deleted ones reappear"] fn test_prompt_error_session_not_found() { run_test(async { run_prompt_error::().await }); } #[test] fn test_prompt_image() { run_test(async { run_prompt_image::().await }); } #[test] fn test_prompt_image_attachment() { run_test(async { run_prompt_image_attachment::().await }); } #[test] fn test_prompt_mcp() { run_test(async { run_prompt_mcp::().await }); } #[test] fn test_prompt_model_mismatch() { run_test(async { run_prompt_model_mismatch::().await }); } #[test] fn test_prompt_skill() { run_test(async { run_prompt_skill::().await }); } #[test] fn test_shell_terminal_false() { run_test(async { run_shell_terminal_false::().await }); } #[test] #[ignore = "provider does not handle terminal delegation requests"] fn test_shell_terminal_true() { run_test(async { run_shell_terminal_true::().await }); }