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

Function from_iter

cranelift/entity/src/primary.rs:550–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn from_iter() {
551 let mut m: PrimaryMap<E, usize> = PrimaryMap::new();
552 m.push(12);
553 m.push(33);
554
555 let n = m.values().collect::<PrimaryMap<E, _>>();
556 assert!(m.len() == n.len());
557 for (me, ne) in m.values().zip(n.values()) {
558 assert!(*me == **ne);
559 }
560 }
561
562 #[test]
563 fn from_vec() {

Callers 15

runMethod · 0.85
generate_blocksMethod · 0.85
terms_in_cyclesFunction · 0.85
from_iterMethod · 0.85
fmtMethod · 0.85
serializeFunction · 0.85
make_control_flowMethod · 0.85
fixup_inst_that_returnsFunction · 0.85
split_off_return_blockFunction · 0.85
replace_call_with_jumpFunction · 0.85

Calls 3

newFunction · 0.50
pushMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected