MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / into_iter

Function into_iter

cranelift/bforest/src/map.rs:1445–1468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1443
1444 #[test]
1445 fn into_iter() {
1446 let mut f = MapForest::<u32, f32>::new();
1447 let mut m = Map::<u32, f32>::new();
1448
1449 for i in 10..20 {
1450 m.insert(i, i as f32, &mut f, &());
1451 }
1452
1453 assert_eq!(
1454 m.into_iter(f).collect::<Vec<_>>(),
1455 vec![
1456 (10, 10.0),
1457 (11, 11.0),
1458 (12, 12.0),
1459 (13, 13.0),
1460 (14, 14.0),
1461 (15, 15.0),
1462 (16, 16.0),
1463 (17, 17.0),
1464 (18, 18.0),
1465 (19, 19.0),
1466 ],
1467 );
1468 }
1469
1470 #[test]
1471 fn range() {

Callers 4

test_limitsFunction · 0.85
test_limits_asyncFunction · 0.85
test_limits_memory_onlyFunction · 0.85
test_limits_table_onlyFunction · 0.85

Calls 2

newFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected