initial commit

Signed-off-by: Sienna Meridian Satterwhite <sienna@r3t.io>
This commit is contained in:
2026-03-06 22:43:25 +00:00
commit 6a6a2ade32
102 changed files with 9556 additions and 0 deletions

16
tests/memory_tdd.rs Normal file
View File

@@ -0,0 +1,16 @@
use mcp_server::memory::service::MemoryService;
use mcp_server::config::MemoryConfig;
#[tokio::test]
async fn test_memory_service_can_be_created() {
let config = MemoryConfig { base_dir: "./tests/data/test_data".to_string(), ..Default::default() };
let service = MemoryService::new(&config).await;
assert!(service.is_ok(), "Memory service should be created successfully");
}
#[tokio::test]
async fn test_memory_service_handles_invalid_path() {
let config = MemoryConfig { base_dir: "/invalid/path/that/does/not/exist".to_string(), ..Default::default() };
let service = MemoryService::new(&config).await;
assert!(service.is_err(), "Memory service should fail with invalid path");
}