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

Function test_buffered_value

crates/vm/src/stdlib/_io.rs:5291–5298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5289
5290 #[test]
5291 fn test_buffered_value() {
5292 let data = vec![1, 2, 3, 4];
5293 let buffered = BufferedIO {
5294 cursor: Cursor::new(data.clone()),
5295 };
5296
5297 assert_eq!(buffered.getvalue(), data);
5298 }
5299 }
5300
5301 pub(crate) fn module_exec(vm: &VirtualMachine, module: &Py<PyModule>) -> PyResult<()> {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected