MCPcopy Create free account
hub / github.com/apache/datafusion / test_get_url_key

Function test_get_url_key

datafusion/execution/src/object_store.rs:321–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn test_get_url_key() {
322 let file = ObjectStoreUrl::parse("file://").unwrap();
323 let key = get_url_key(&file.url);
324 assert_eq!(key.as_str(), "file://");
325
326 let url = ObjectStoreUrl::parse("s3://bucket").unwrap();
327 let key = get_url_key(&url.url);
328 assert_eq!(key.as_str(), "s3://bucket");
329
330 let url = ObjectStoreUrl::parse("s3://username:password@host:123").unwrap();
331 let key = get_url_key(&url.url);
332 assert_eq!(key.as_str(), "s3://host:123");
333 }
334}

Callers

nothing calls this directly

Calls 1

get_url_keyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…