MCPcopy Index your code
hub / github.com/RustPython/RustPython / basic_push_pop

Function basic_push_pop

crates/vm/src/datastack.rs:220–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 #[test]
220 fn basic_push_pop() {
221 let mut ds = DataStack::new();
222 let p1 = ds.push(64);
223 assert!(!p1.is_null());
224 let p2 = ds.push(128);
225 assert!(!p2.is_null());
226 assert!(p2 > p1);
227 unsafe {
228 ds.pop(p2);
229 ds.pop(p1);
230 }
231 }
232
233 #[test]
234 fn cross_chunk_push_pop() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected