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

Function test_extract_async_function

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

Source from the content-addressed store, hash-verified

486
487 #[test]
488 fn test_extract_async_function() {
489 let mut parser = PythonParser::new();
490 let source = r#"
491async def fetch_data(url: str) -> dict:
492 pass
493"#;
494 let entities = parser.extract(source, "main.py");
495 let fetch = entities.iter().find(|e| e.name == "fetch_data");
496 assert!(fetch.is_some(), "Should find fetch_data");
497 }
498
499 #[test]
500 fn test_extract_class() {

Callers

nothing calls this directly

Calls 2

extractMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected