()
| 383 | |
| 384 | #[tokio::test] |
| 385 | async fn test_agent_memory_working() { |
| 386 | let memory = AgentMemory::new(Arc::new(InMemoryStore::new())); |
| 387 | memory |
| 388 | .add_to_working(MemoryItem::new("task").with_type(MemoryType::Working)) |
| 389 | .await |
| 390 | .unwrap(); |
| 391 | assert_eq!(memory.working_count().await, 1); |
| 392 | memory.clear_working().await; |
| 393 | assert_eq!(memory.working_count().await, 0); |
| 394 | } |
| 395 | |
| 396 | #[tokio::test] |
| 397 | async fn test_agent_memory_working_overflow_trims() { |
nothing calls this directly
no test coverage detected