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

Function test_extract_module_variables

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

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn test_extract_module_variables() {
551 let mut parser = PythonParser::new();
552 let source = r#"
553default_config = {"timeout": 30}
554"#;
555 let entities = parser.extract(source, "config.py");
556 let cfg = entities.iter().find(|e| e.name == "default_config");
557 assert!(cfg.is_some(), "Should find default_config");
558 assert_eq!(cfg.unwrap().kind, EntityKind::Variable);
559 }
560
561 #[test]
562 fn test_extract_imports() {

Callers

nothing calls this directly

Calls 2

extractMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected