()
| 138 | |
| 139 | #[tokio::test] |
| 140 | async fn test_ls_nonexistent() { |
| 141 | let temp = tempfile::tempdir().unwrap(); |
| 142 | let tool = LsTool; |
| 143 | let ctx = ToolContext::new(temp.path().to_path_buf()); |
| 144 | |
| 145 | let result = tool |
| 146 | .execute(&serde_json::json!({"path": "nonexistent"}), &ctx) |
| 147 | .await |
| 148 | .unwrap(); |
| 149 | |
| 150 | assert!(!result.success); |
| 151 | } |
| 152 | |
| 153 | #[test] |
| 154 | fn test_format_size() { |