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

Function named_instance_is_const

tests/extraction_suite/lean.rs:159–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158#[test]
159fn named_instance_is_const() {
160 let source = "instance addNat : Add Nat where\n add := Nat.add\n";
161 let result = extract(source);
162 let consts = names_of(&result, NodeKind::Const);
163 assert_eq!(consts, vec!["addNat".to_string()]);
164}
165
166#[test]
167fn anonymous_section_emits_no_module_but_recurses_body() {

Callers

nothing calls this directly

Calls 2

extractFunction · 0.70
names_ofFunction · 0.70

Tested by

no test coverage detected