MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_extract_async_function

Function test_extract_async_function

atomic-semantic/src/parsers/python.rs:465–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463
464 #[test]
465 fn test_extract_async_function() {
466 let mut parser = PythonParser::new();
467 let source = r#"
468async def fetch_data(url: str) -> dict:
469 pass
470"#;
471 let entities = parser.extract(source, "main.py");
472 let fetch = entities.iter().find(|e| e.name == "fetch_data");
473 assert!(fetch.is_some(), "Should find fetch_data");
474 }
475
476 #[test]
477 fn test_extract_class() {

Callers

nothing calls this directly

Calls 2

extractMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected