MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / test

Function test

src/system/closure.rs:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48 #[test]
49 fn test() {
50 let mut list = Vector::new();
51 list.push(Closure::bind(&invoke, ("hello", 42)));
52 list.push(Closure::bind(&invoke, ("world!", 32)));
53 for closure in list.into_iter() {
54 closure.invoke();
55 }
56
57 // If we get here, it didn't crash. That's a win!
58 assert_eq!(true, true);
59 }
60
61 #[test]
62 fn test2() {

Callers

nothing calls this directly

Calls 3

invokeMethod · 0.80
pushMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected