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

Function test_decorated_class

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

Source from the content-addressed store, hash-verified

643
644 #[test]
645 fn test_decorated_class() {
646 let mut parser = PythonParser::new();
647 let source = r#"
648@dataclass
649class Config:
650 host: str
651 port: int = 8080
652"#;
653 let entities = parser.extract(source, "config.py");
654 assert!(entities
655 .iter()
656 .any(|e| e.name == "Config" && e.kind == EntityKind::Class));
657 }
658
659 #[test]
660 fn test_empty_source() {

Callers

nothing calls this directly

Calls 1

extractMethod · 0.45

Tested by

no test coverage detected