94eaacc06f
Signed-off-by: Adrian Cole <adrian@tetrate.io>
113 lines
3.0 KiB
Rust
113 lines
3.0 KiB
Rust
mod common_tests;
|
|
use common_tests::fixtures::run_test;
|
|
use common_tests::fixtures::server::ClientToAgentConnection;
|
|
use common_tests::{
|
|
run_config_mcp, run_fs_read_text_file_true, run_fs_write_text_file_false,
|
|
run_fs_write_text_file_true, run_initialize_doesnt_hit_provider, run_load_mode, run_load_model,
|
|
run_load_session_mcp, run_mode_set, run_model_list, run_model_set, run_permission_persistence,
|
|
run_prompt_basic, run_prompt_codemode, run_prompt_image, run_prompt_image_attachment,
|
|
run_prompt_mcp, run_prompt_skill, run_shell_terminal_false, run_shell_terminal_true,
|
|
};
|
|
|
|
tests_mode_set_error!(ClientToAgentConnection);
|
|
|
|
#[test]
|
|
fn test_config_mcp() {
|
|
run_test(async { run_config_mcp::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_fs_read_text_file_true() {
|
|
run_test(async { run_fs_read_text_file_true::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_fs_write_text_file_false() {
|
|
run_test(async { run_fs_write_text_file_false::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_fs_write_text_file_true() {
|
|
run_test(async { run_fs_write_text_file_true::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_initialize_doesnt_hit_provider() {
|
|
run_test(async { run_initialize_doesnt_hit_provider::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_load_mode() {
|
|
run_test(async { run_load_mode::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_load_model() {
|
|
run_test(async { run_load_model::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_load_session_mcp() {
|
|
run_test(async { run_load_session_mcp::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_mode_set() {
|
|
run_test(async { run_mode_set::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_model_list() {
|
|
run_test(async { run_model_list::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_model_set() {
|
|
run_test(async { run_model_set::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_permission_persistence() {
|
|
run_test(async { run_permission_persistence::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_basic() {
|
|
run_test(async { run_prompt_basic::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_codemode() {
|
|
run_test(async { run_prompt_codemode::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_image() {
|
|
run_test(async { run_prompt_image::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_image_attachment() {
|
|
run_test(async { run_prompt_image_attachment::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_mcp() {
|
|
run_test(async { run_prompt_mcp::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_prompt_skill() {
|
|
run_test(async { run_prompt_skill::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_shell_terminal_false() {
|
|
run_test(async { run_shell_terminal_false::<ClientToAgentConnection>().await });
|
|
}
|
|
|
|
#[test]
|
|
fn test_shell_terminal_true() {
|
|
run_test(async { run_shell_terminal_true::<ClientToAgentConnection>().await });
|
|
}
|