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

Function test_blank_identifier_skipped

atomic-semantic/src/parsers/go.rs:659–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

657
658 #[test]
659 fn test_blank_identifier_skipped() {
660 let mut parser = GoParser::new();
661 let source = r#"
662package main
663
664var _ Interface = (*Impl)(nil)
665"#;
666 let entities = parser.extract(source, "check.go");
667 assert!(
668 !entities.iter().any(|e| e.name == "_"),
669 "Should not extract blank identifier"
670 );
671 }
672
673 #[test]
674 fn test_empty_source() {

Callers

nothing calls this directly

Calls 1

extractMethod · 0.45

Tested by

no test coverage detected