MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_ls_nonexistent

Function test_ls_nonexistent

core/src/tools/builtin/ls.rs:140–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

pathMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected