MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / test_rust_file_node_is_root

Function test_rust_file_node_is_root

tests/extraction_suite/rust.rs:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[test]
6fn test_rust_file_node_is_root() {
7 let source = r#"fn main() {}"#;
8 let extractor = RustExtractor;
9 let result = extractor.extract("test.rs", source);
10 assert!(result.errors.is_empty(), "errors: {:?}", result.errors);
11 let files: Vec<_> = result
12 .nodes
13 .iter()
14 .filter(|n| n.kind == NodeKind::File)
15 .collect();
16 assert_eq!(files.len(), 1);
17 assert_eq!(files[0].name, "test.rs");
18}
19
20#[test]
21fn test_rust_function() {

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
extractMethod · 0.45

Tested by

no test coverage detected