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

Function names_of

tests/extraction_suite/lean.rs:9–16  ·  view source on GitHub ↗
(result: &ExtractionResult, kind: NodeKind)

Source from the content-addressed store, hash-verified

7}
8
9fn names_of(result: &ExtractionResult, kind: NodeKind) -> Vec<String> {
10 result
11 .nodes
12 .iter()
13 .filter(|n| n.kind == kind)
14 .map(|n| n.name.clone())
15 .collect()
16}
17
18#[test]
19fn def_is_function() {

Callers 9

def_is_functionFunction · 0.70
theorem_is_functionFunction · 0.70
structure_is_structFunction · 0.70
axiom_is_constFunction · 0.70
inductive_is_enumFunction · 0.70
named_instance_is_constFunction · 0.70

Calls 1

collectMethod · 0.80

Tested by 9

def_is_functionFunction · 0.56
theorem_is_functionFunction · 0.56
structure_is_structFunction · 0.56
axiom_is_constFunction · 0.56
inductive_is_enumFunction · 0.56
named_instance_is_constFunction · 0.56